From 5247e6823d70874067ab3d9e63e7d261ebe05b18 Mon Sep 17 00:00:00 2001 From: zyx <zyx123456> Date: 星期一, 15 一月 2024 19:27:15 +0800 Subject: [PATCH] # 新增库位打印功能 --- src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 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 6b9f66b..27279f6 100644 --- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java @@ -1211,9 +1211,10 @@ throw new CoolException("绯荤粺鏈娴嬪埌璇ュ寘鐗╂枡淇℃伅锛岃閲嶆柊褰曞叆"); } - if(Cools.eq(GlobleParameter.PLA_STATUS_1,pla.getStatus())){ - throw new CoolException("璇ョ墿鏂欏凡鍏ュ簱"); + if(!pla.getStatus().equals(GlobleParameter.PLA_STATUS_0)){ + throw new CoolException("璇ョ墿鏂欑姸鎬佷笉涓哄緟鍏ュ簱锛屾棤娉曞叆搴�"); } + pla.setStatus(GlobleParameter.PLA_STATUS_1); pla.setModifyTime(new Date()); pla.setPakinTime(new Date()); @@ -1260,9 +1261,9 @@ pla.setWeightAnfme(pla.getWeightAnfme() - anfme); pla.setQtyAnfme(pla.getQtyAnfme() - anfme); if(pla.getWeightAnfme() <= 0){ - pla.setStatus("鍏ㄩ儴鍑哄簱"); + pla.setStatus(GlobleParameter.PLA_STATUS_4); }else { - pla.setStatus("閮ㄥ垎鍑哄簱"); + pla.setStatus(GlobleParameter.PLA_STATUS_3); } plaService.updateById(pla); SaasUtils.insertLog(1,locNo,batch+","+packageNo,anfme,null); -- Gitblit v1.9.1