From 05f8bdf7e09849c1db885b6c996ad18280d130b3 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期一, 18 十二月 2023 16:18:25 +0800
Subject: [PATCH] #map latest test

---
 src/main/resources/mapper/WrkMastMapper.xml |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index 1812fb2..4526992 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -122,7 +122,7 @@
         from dbo.asr_wrk_mast
         where 1=1
         and wrk_sts = 4
-        and io_type in (1,10,53)
+        and io_type in (1,10,53,57)
         order by io_pri desc,wrk_sts desc
     </select>
 
@@ -161,7 +161,14 @@
     <select id="selectShuttleWrkByLev" resultMap="BaseResultMap">
         select * from dbo.asr_wrk_mast
         where shuttle_no is not null
-        and ((wrk_sts not in (14,15)  and loc_no like #{lev}) or (wrk_sts not in (34,35) and source_loc_no like #{lev}))
+        and ((wrk_sts not in (9,10)  and loc_no like #{lev}) or (wrk_sts not in (29,30) and source_loc_no like #{lev}))
+        order by io_pri desc,wrk_sts desc
+    </select>
+
+    <select id="selectShuttleOutWrkByLev" resultMap="BaseResultMap">
+        select * from dbo.asr_wrk_mast
+        where shuttle_no is not null
+        and (wrk_sts not in (29,30) and source_loc_no like #{lev})
         order by io_pri desc,wrk_sts desc
     </select>
 
@@ -234,4 +241,11 @@
         and wrk_sts in (1,2,3,4,5)
         order by io_pri desc,io_time,wrk_no asc
     </select>
+
+    <select id="select300Wrk" resultMap="BaseResultMap">
+        select * from asr_wrk_mast
+        where (source_sta_no in (300) and io_type > 100)
+        or (source_sta_no in (341) and wrk_sts = 2)
+        or (sta_no in (300) and shuttle_no is not null)
+    </select>
 </mapper>

--
Gitblit v1.9.1