From 56799645b3a3ac57c6bcb091261a241e06e43945 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 26 九月 2023 15:02:21 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java index e859f7c..5bd34d0 100644 --- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java @@ -105,7 +105,7 @@ } Date now = new Date(); - int matType = 0; + Integer matType = 0; // 鏃犲崟缁勬墭 if (Cools.isEmpty(param.getOrderNo())) { @@ -113,7 +113,7 @@ // 鐢熸垚鍏ュ簱閫氱煡妗� List<DetlDto> detlDtos = new ArrayList<>(); param.getCombMats().forEach(elem -> { - elem.setBatch(""); +// elem.setBatch(""); DetlDto detlDto = new DetlDto(elem.getMatnr(), elem.getBatch(), elem.getAnfme(), elem.getMemo(), elem.getCstmr()); if (Cools.isEmpty(detlDto.getBatch())){ @@ -138,7 +138,8 @@ } WaitPakin waitPakin = new WaitPakin(); waitPakin.sync(mat); - waitPakin.setBatch(""); +// waitPakin.setBatch(""); + waitPakin.setBatch(detlDto.getBatch()); waitPakin.setZpallet(param.getBarcode()); // 鎵樼洏鐮� waitPakin.setIoStatus("N"); // 鍏ュ嚭鐘舵�� waitPakin.setAnfme(detlDto.getAnfme()); // 鏁伴噺 @@ -151,15 +152,15 @@ waitPakin.setFrozen(param.getFrozen()); // 鏄惁鍐荤粨 waitPakin.setManu(detlDto.getCstmr()); waitPakin.setMatType(mat.getMatType());//鐗╂枡绫诲瀷 -// if (Cools.isEmpty(mat.getMatType())){ -// throw new CoolException("鐗╂枡绫诲瀷寮傚父"+mat.getMatnr()); -// }else { -// if (matType == 0){ -// matType = mat.getMatType(); -// }else if (matType!=mat.getMatType()){ -// throw new CoolException("璇风粍鎵樺悓涓�绫诲瀷鐨勭墿鏂�"); -// } -// } + if (Cools.isEmpty(mat.getMatType())){ + throw new CoolException("鐗╂枡绫诲瀷寮傚父"+mat.getMatnr()); + }else { + if (matType == 0){ + matType = mat.getMatType(); + }else if (!matType.equals(mat.getMatType())){ + throw new CoolException("璇风粍鎵樺悓涓�绫诲瀷鐨勭墿鏂�"); + } + } if (!waitPakinService.insert(waitPakin)) { throw new CoolException("淇濆瓨鍏ュ簱閫氱煡妗eけ璐�"); } -- Gitblit v1.9.1