From c45d612c0673c5037a12b4a7514b5c52e7ecdbe9 Mon Sep 17 00:00:00 2001
From: zhangc <zc@123>
Date: 星期二, 26 十一月 2024 11:14:03 +0800
Subject: [PATCH] Merge branch 'phyzwms2' into phyzasrs-erp

---
 src/main/java/com/zy/asrs/task/handler/AgvWrkMastHandler.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/asrs/task/handler/AgvWrkMastHandler.java b/src/main/java/com/zy/asrs/task/handler/AgvWrkMastHandler.java
index 4dfd8fe..69403df 100644
--- a/src/main/java/com/zy/asrs/task/handler/AgvWrkMastHandler.java
+++ b/src/main/java/com/zy/asrs/task/handler/AgvWrkMastHandler.java
@@ -531,12 +531,15 @@
                 throw new CoolException("浠诲姟涓嬪彂澶辫触");
             }
 
-            agvWrkMast.setWrkSts(202L);
-            agvWrkMast.setModiTime(new Date());
-            boolean b = agvWrkMastService.updateById(agvWrkMast);
+            //agvWrkMast.setWrkSts(202L);
+            //agvWrkMast.setModiTime(new Date());
+            //boolean b = agvWrkMastService.updateById(agvWrkMast);
+            boolean b = agvWrkMastService.updateWrkStsByWrkNo(Math.abs(agvWrkMast.getWrkNo()), 202L);
             if (!b) {
                 log.info("鏇存柊浠诲姟鐘舵�佸け璐�,{}", agvWrkMast.getWrkNo());
                 throw new CoolException("鏇存柊浠诲姟鐘舵�佸け璐�");
+            } else {
+                log.info("鏇存柊浠诲姟鐘舵�佹垚鍔�,{}", agvWrkMast.getWrkNo());
             }
             if (agvWrkMast.getIoType() == 1) {
                 //淇敼AGV鍏ュ簱閫氱煡妗g姸鎬佸叆鍑虹姸鎬佷负Y

--
Gitblit v1.9.1