From 5cdc662bf8772726da4c0b1bd2c87ca69a606183 Mon Sep 17 00:00:00 2001
From: tqs <56479841@qq.com>
Date: 星期二, 25 十月 2022 07:11:48 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/WrkMastMapper.xml | 34 ++++++++++++++++++++++++++++++++--
1 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index a1e3548..14fc8f7 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -90,7 +90,7 @@
</select>
<select id="selectPakInStep23456" resultMap="BaseResultMap">
- select top 1 * from dbo.asr_wrk_mast where wrk_sts in (2,3,4,5,6) and crn_no=#{crnNo} and wrk_no=#{workNo} and sta_no=#{staNo} and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC
+ select top 1 * from dbo.asr_wrk_mast where wrk_sts in (2,3,4,5,6,7,8) and crn_no=#{crnNo} and wrk_no=#{workNo} and sta_no=#{staNo} and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC
</select>
<select id="selectPakInStep45" resultMap="BaseResultMap">
@@ -109,8 +109,12 @@
select top 1 * from asr_wrk_mast where wrk_no=#{wrkNo} and wrk_sts=17 and (io_type=103 or io_type=107 or io_type=104)
</select>
+ <select id="selectPickStepByBarcode" resultMap="BaseResultMap">
+ select top 1 * from asr_wrk_mast where barcode=#{barcode} and wrk_sts=17 and (io_type=103 or io_type=107 or io_type=104)
+ </select>
+
<select id="selectPakOutStep111215" resultMap="BaseResultMap">
- select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and source_sta_no=#{sourceStaNo} and wrk_sts in (11,12,15) and io_type>100 order by io_pri desc,io_time,wrk_no asc
+ select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and source_sta_no=#{sourceStaNo} and wrk_sts in (11,12,13,14,15, 16) and io_type>100 order by io_pri desc,io_time,wrk_no asc
</select>
<select id="selectPakOutStep16" resultMap="BaseResultMap">
@@ -129,4 +133,30 @@
select top 1 * from dbo.asr_wrk_mast where 1=1 and (wrk_sts=7 or wrk_sts=16) and crn_no=#{crnNo} order by io_time,wrk_no
</select>
+ <select id="selectPakin" resultMap="BaseResultMap">
+ select top 1 * from dbo.asr_wrk_mast
+ where 1=1
+ and wrk_sts in (3,4,5,6,7,8,9)
+ and crn_no=#{crnNo}
+ <if test="steNo != null">
+ and ste_no = #{steNo}
+ </if>
+ </select>
+
+ <select id="selectPakout" resultMap="BaseResultMap">
+ select top 1 *
+ from dbo.asr_wrk_mast
+ where 1=1
+ and
+ (
+ (wrk_sts in (12,13,14,15,16,17) and io_type in (101, 110))
+ or
+ (wrk_sts in (12,13,14,15,16) and io_type in (103, 104, 107))
+ )
+ and crn_no=#{crnNo}
+ <if test="steNo != null">
+ and ste_no = #{steNo}
+ </if>
+ </select>
+
</mapper>
--
Gitblit v1.9.1