From fe87eb25a80054e54d3a58307a135edaa8289e8d Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期四, 10 八月 2023 13:19:11 +0800
Subject: [PATCH] 每次盘点只出一托

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

diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index bdab988..bbdf64a 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -187,4 +187,10 @@
     <select id="selectPakInStepBarcode" resultMap="BaseResultMap">
         select top 1 * from dbo.asr_wrk_mast where  barcode = #{barcode}
     </select>
+    <select id="selectPakOutStep14" resultMap="BaseResultMap">
+        select top 1 * from dbo.asr_wrk_mast
+        where crn_no=#{crnNo}
+          and ((wrk_sts=14 and io_type in (103,107) and source_sta_no=#{sourceStaNo}) or (wrk_sts in (2,3) and io_type in (53,57) and sta_no=#{sourceStaNo}))
+        order by io_pri desc,io_time,wrk_no asc
+    </select>
 </mapper>

--
Gitblit v1.9.1