From b8f320c817c486c33613ca196ceab7c8fd354bae Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期三, 29 五月 2024 16:24:47 +0800
Subject: [PATCH] # 操作日志

---
 src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java b/src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java
index f10654e..1dd5f31 100644
--- a/src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java
+++ b/src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java
@@ -69,6 +69,18 @@
         this.updateById(agvWrkMast);
     }
 
+    public void updateWrkStsByWrkNo(int wrkNo, long wrkSts,String manuType,long userId) {
+        Date now = new Date();
+        AgvWrkMast agvWrkMast = this.selectById(wrkNo);
+        //鍒ゆ柇瑕佷慨鏀圭殑宸ヤ綔妗g姸鎬佹槸鍚﹀悎鐞嗭紝濡傛灉涓嶅悎鐞嗗垯鎶涘嚭寮傚父
+        checkWrkSts(agvWrkMast,wrkSts);
+        agvWrkMast.setWrkSts(wrkSts);
+        agvWrkMast.setManuType(manuType);
+        agvWrkMast.setModiTime(now);
+        agvWrkMast.setModiUser(userId);
+        this.updateById(agvWrkMast);
+    }
+
     // TODO 鍒ゆ柇瑙勫垯
     private boolean checkWrkSts(AgvWrkMast agvWrkMast,long wrkSts){
 

--
Gitblit v1.9.1