From c14c261181c9afb2e0d07c714e06c81a6417c8cd Mon Sep 17 00:00:00 2001 From: 野心家 <1051256694@qq.com> Date: 星期四, 05 六月 2025 16:10:51 +0800 Subject: [PATCH] 对接mes物料信息 --- src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 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 e37ebd6..dc2c5be 100644 --- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java @@ -94,12 +94,20 @@ throw new CoolException(param.getBarcode() + "鏁版嵁姝e湪杩涜鍏ュ簱"); } - if(param.getBarcode().length()!=8){ - throw new CoolException("鏉$爜闀垮害涓嶆槸8浣�===>>" + param.getBarcode()); - } +// if(param.getBarcode().length()!=8){ +// throw new CoolException("鏉$爜闀垮害涓嶆槸8浣�===>>" + param.getBarcode()); +// } if (param.getCombMats().size()>1){ throw new CoolException("涓嶅厑璁告贩鏂�===>>" + param.getBarcode()); } + Mat mat1 = matService.selectByMatnr(param.getCombMats().get(0).getMatnr()); + if(!Cools.isEmpty(mat1)){ + param.getCombMats().get(0).setBatch(mat1.getMatnr()); + param.getCombMats().get(0).setAnfme(mat1.getPrice()); + } + if(Cools.isEmpty(param.getCombMats().get(0).getBatch())){ + throw new CoolException("鎵瑰彿锛堝敮涓�鐮侊級涓嶈兘涓虹┖===>>" + param.getBarcode()); + } int countLoc = locDetlService.selectCount(new EntityWrapper<LocDetl>().eq("zpallet",param.getBarcode())); int countWrk = wrkDetlService.selectCount(new EntityWrapper<WrkDetl>().eq("zpallet",param.getBarcode())); -- Gitblit v1.9.1