From c26270ef459e2ccf15bb019a05ac6d3934e2ad57 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期二, 16 一月 2024 12:35:55 +0800
Subject: [PATCH] # 拣货单删除功能

---
 src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java |   10 ++++++----
 1 files changed, 6 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..6e3f396 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());
@@ -1259,10 +1260,11 @@
         //鏇存柊pla鏄庣粏
         pla.setWeightAnfme(pla.getWeightAnfme() - anfme);
         pla.setQtyAnfme(pla.getQtyAnfme() - anfme);
+        pla.setModifyTime(new Date());
         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