From a516fec01d3af6fbd55fb8ec1177ff55f5b0f156 Mon Sep 17 00:00:00 2001
From: ytfl <ytfl@qq.com>
Date: 星期二, 14 十月 2025 15:33:43 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/asrs/WrkMastMapper.xml           |    2 +-
 src/main/java/com/zy/asrs/task/handler/WorkLogHandler.java |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/task/handler/WorkLogHandler.java b/src/main/java/com/zy/asrs/task/handler/WorkLogHandler.java
index 036e784..58b2f96 100644
--- a/src/main/java/com/zy/asrs/task/handler/WorkLogHandler.java
+++ b/src/main/java/com/zy/asrs/task/handler/WorkLogHandler.java
@@ -15,6 +15,7 @@
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.transaction.interceptor.TransactionAspectSupport;
 
+import java.util.Date;
 import java.util.Iterator;
 import java.util.List;
 
@@ -112,6 +113,9 @@
 //                }
             }
 
+            wrkMast.setIoTime(new Date());
+            wrkMastService.updateById(wrkMast);
+
             // 淇濆瓨宸ヤ綔涓绘。鍘嗗彶妗�
             if (!wrkMastLogService.save(wrkMast.getWrkNo())) {
                 exceptionHandle("淇濆瓨宸ヤ綔鍘嗗彶妗workNo={0}]澶辫触", wrkMast.getWrkNo());
diff --git a/src/main/resources/mapper/asrs/WrkMastMapper.xml b/src/main/resources/mapper/asrs/WrkMastMapper.xml
index c866c7f..b99fd2d 100644
--- a/src/main/resources/mapper/asrs/WrkMastMapper.xml
+++ b/src/main/resources/mapper/asrs/WrkMastMapper.xml
@@ -69,7 +69,7 @@
     <select id="selectToBeHistoryData" resultMap="BaseResultMap">
         select * from asr_wrk_mast
         where wrk_sts=5
-        or (wrk_sts=15 and dateadd(mi,10,crn_end_time) &lt;= getdate() and ove_mk='Y' and wrk_no not in (select wrk_no from asr_bas_devp))
+        or (wrk_sts=15 and ove_mk='Y' and wrk_no not in (select wrk_no from asr_bas_devp))
         or (wrk_sts=15 and dateadd(mi,15,crn_end_time) &lt;= getdate() and wrk_no not in (select wrk_no from asr_bas_devp))
         or (wrk_sts=15 and crn_end_time is null and wrk_no not in (select wrk_no from asr_bas_devp))
         order by io_time,wrk_no asc

--
Gitblit v1.9.1