From f778d39fbbb49efe4dd0aaa0b2f89ed7fa3d5ea6 Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期三, 02 八月 2023 15:37:05 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/WrkMastMapper.xml | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index 480fc7d..e83d6e5 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -67,7 +67,7 @@
</select>
<select id="selectByLocNo1" resultMap="BaseResultMap">
- select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} or loc_no = #{sourceLocNo})
+ select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} or loc_no = #{sourceLocNo}
</select>
<select id="selectToBeCompleteData" resultMap="BaseResultMap">
@@ -85,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">
@@ -179,4 +182,31 @@
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="wrkCrnMoveOutXY" resultMap="BaseResultMap">
+ select top 1 * from dbo.asr_wrk_mast where
+ wrk_sts in (21)
+ and io_type>100 and io_type != 111 and ste_no is not null
+ and crn_no = #{crnNo}
+ order by io_pri desc,io_time,wrk_no asc
+ </select>
+
+ <select id="wrkCrnMoveOutXYing" resultMap="BaseResultMap">
+ select top 1 * from dbo.asr_wrk_mast where
+ wrk_sts in (26)
+ and io_type>100 and io_type != 111 and ste_no is not null
+ and crn_no = #{crnNo}
+ order by io_pri desc,io_time,wrk_no asc
+ </select>
+
+ <select id="wrkCrnMoveOutXYingOther" resultMap="BaseResultMap">
+ select top 1 * from dbo.asr_wrk_mast where
+ wrk_sts in (22,23,24,25,27,28)
+ and io_type>100 and io_type != 111
+ and crn_no = #{crnNo}
+ order by io_pri desc,io_time,wrk_no asc
+ </select>
</mapper>
--
Gitblit v1.9.1