From cf3735927bcf6797555d1b760fde6db085bc320d Mon Sep 17 00:00:00 2001
From: lsh <lsh>
Date: 星期二, 21 五月 2024 17:26:09 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/TaskWrkMapper.xml |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/mapper/TaskWrkMapper.xml b/src/main/resources/mapper/TaskWrkMapper.xml
index cc05d5d..c8304a1 100644
--- a/src/main/resources/mapper/TaskWrkMapper.xml
+++ b/src/main/resources/mapper/TaskWrkMapper.xml
@@ -119,7 +119,7 @@
     <select id="selectToBeHistoryData" resultMap="BaseResultMap">
         select * from dbo.wcs_task_wrk
         where 1=1
-        and ((wrk_sts=14 and status=5) or status=4 or (wrk_sts=4 and status=5))
+        and ((wrk_sts=15 and status=5) or status=4 or (wrk_sts=5 and status=5))
         order by io_pri desc,create_time,wrk_no ASC
     </select>
 
@@ -129,8 +129,16 @@
 
     <select id="selectWorkingTask" resultMap="BaseResultMap">
         select * from dbo.wcs_task_wrk
-        where (wrk_sts=3 and io_type = 1)
-        or (wrk_sts=12 and io_type = 2)
+        where (wrk_sts=5 and io_type = 1)
+        or (wrk_sts=15 and io_type = 2)
+        or (wrk_sts = 5 and io_type = 3)
+        order by io_pri desc,create_time,wrk_no ASC
+    </select>
+    <select id="selectbyWrksts4" resultMap="BaseResultMap">
+        select * from dbo.wcs_task_wrk
+        where (wrk_sts=4 and io_type = 1)
+           or (wrk_sts=14 and io_type = 2)
+           or (wrk_sts = 4 and io_type = 3)
         order by io_pri desc,create_time,wrk_no ASC
     </select>
 

--
Gitblit v1.9.1