From ff73a7a1c938699e7fe56067e747b515538790d5 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期五, 21 七月 2023 13:34:09 +0800 Subject: [PATCH] # 有疑问,暂时提交本地 --- src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java | 27 +++++++++++++++++++++++---- 1 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java index 6e3e7d5..523522b 100644 --- a/src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java @@ -447,6 +447,7 @@ @Override @Transactional public void stockOut(BasDevp staNo, List<LocDetlDto> locDetlDtos, IoWorkType ioWorkType, Long userId) { + Integer basDevp = staNo.getDevNo(); Date now = new Date(); // 鍚堝苟鍚岀被椤� Set<String> locNos = new HashSet<>(); @@ -573,6 +574,10 @@ if (Cools.isEmpty(mat)) { throw new CoolException(locDetl.getMatnr() + "鍟嗗搧妗f涓嶅瓨鍦�"); } + int zpallet = waitPakinService.selectCount(new EntityWrapper<WaitPakin>().eq("zpallet", locDetl.getZpallet())); + if (zpallet>0) { + throw new CoolException(locDetl.getZpallet() + "鍏ュ簱閫氱煡妗d腑宸插瓨鍦�"); + } WaitPakin waitPakin = new WaitPakin(); waitPakin.sync(mat); waitPakin.setBatch(""); @@ -624,13 +629,27 @@ //-----------------2023.6.2鍑哄簱鍏煎浠g爜----------------------- if (ioType!=107){ List<LocDetl> locDetls = locDetlService.selectByLocNo(locMast.getLocNo()); - if (locMast.getLocType2() == 1 && locDetls.size() > 1) { - //鍗曞搧鍖哄煙鍑哄簱鐗╂枡澶т簬1绉嶏紝寮哄埗鍙樻垚101鍏ㄦ澘鍑哄簱 - ioType = 101; + //if (locMast.getLocType2() == 1 && locDetls.size() > 1) { + // //鍗曞搧鍖哄煙鍑哄簱鐗╂枡澶т簬1绉嶏紝寮哄埗鍙樻垚101鍏ㄦ澘鍑哄簱 + // ioType = 101; + // if (staNo.getDevNo()==300){ + // staNo.setDevNo(200); + // } + //} + if (ioType == 101) { if (staNo.getDevNo()==300){ - staNo.setDevNo(200); + if(locMast.getCrnNo() == 1) { + staNo.setDevNo(100); + } else { + staNo.setDevNo(200); + } + } + } else { + staNo.setDevNo(basDevp); } + + } //-----------------2023.6.2鍑哄簱鍏煎浠g爜end----------------------- -- Gitblit v1.9.1