From 7400211f1ceecea0048ff3f5adfeeb8fe975bc7a Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期三, 19 三月 2025 11:01:53 +0800
Subject: [PATCH] #初始化地图

---
 src/main/resources/mapper/WrkMastMapper.xml |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index 21de077..7921056 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -66,6 +66,10 @@
         select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} and  (ctn_no is null or ctn_no != 'Y')
     </select>
 
+    <select id="selectByLocNo1"  resultMap="BaseResultMap">
+        select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} or loc_no = #{sourceLocNo}
+    </select>
+
     <select id="selectToBeCompleteData" resultMap="BaseResultMap">
         select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type != 103 and io_type != 104 and io_type != 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no
     </select>
@@ -81,6 +85,9 @@
 
     <select id="selectPakInStep1" resultMap="BaseResultMap">
         select top 1 * from asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=2 and barcode=#{barcode} and (io_type=1 or io_type=10) order by io_pri desc,io_time,wrk_no ASC
+    </select>
+    <select id="selectPakInStepBarcode" resultMap="BaseResultMap">
+        select top 1 * from dbo.asr_wrk_mast where  barcode = #{barcode}
     </select>
 
     <select id="selectPakInStep11" resultMap="BaseResultMap">
@@ -175,4 +182,14 @@
         and source_sta_no = #{sourceStaNo}
         order by io_time,wrk_no
     </select>
+    <select id="selectPakoutEmpty" resultMap="BaseResultMap">
+        select top 1 * from dbo.asr_wrk_mast where  io_type = 110 and sta_no = #{staNo} order by io_time,wrk_no
+    </select>
+    <select id="selectPickStep2" resultMap="BaseResultMap">
+        select top 1 * from asr_wrk_mast where barcode = #{barcode} and (wrk_sts=14 and io_type=107) or (wrk_sts=2 and io_type=57)
+    </select>
+    <select id="selectByWrkNo" resultMap="BaseResultMap">
+        select * from asr_wrk_mast
+        where wrk_no = #{wrkNo}
+    </select>
 </mapper>

--
Gitblit v1.9.1