From f9a4e6ce9b400a30aeac6d91831e8785368ea839 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期五, 06 九月 2024 16:48:57 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/WrkMastMapper.xml | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index 3bcdc93..02214b4 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -63,7 +63,7 @@
</resultMap>
<select id="selectByLocNo" resultMap="BaseResultMap">
- select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} and (ctn_no is null or ctn_no != 'Y')
+ select top 1 * from asr_wrk_mast where sta_no = #{staNo} and (ctn_no is null or ctn_no != 'Y')
</select>
<select id="selectByLocNo1" resultMap="BaseResultMap">
@@ -192,4 +192,22 @@
<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="selectpj" resultMap="BaseResultMap">
+ select * from dbo.asr_wrk_mast where wrk_sts =14 and barcode=#{barcode}
+ </select>
+
+ <select id="selectLaneWrkMastIn" resultMap="BaseResultMap">
+ select * from dbo.asr_wrk_mast where wrk_sts=2 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="selectLaneWrkMastOut" resultMap="BaseResultMap">
+ select * from dbo.asr_wrk_mast where wrk_sts in (11,12,13,14) and io_type>100 order by io_pri desc,io_time,wrk_no asc
+ </select>
+
+ <select id="selectByWrkNo" resultMap="BaseResultMap">
+ select top 1 * from dbo.asr_wrk_mast where wrk_no = #{wrkNo} and (wrk_sts = 13 or wrk_sts = 2) order by io_pri desc,io_time,wrk_no asc
+ </select>
+ <select id="selectCrn5Task2" resultMap="BaseResultMap">
+ select * from dbo.asr_wrk_mast where wrk_sts=1 and io_type=1 order by io_pri desc,io_time,wrk_no ASC
+ </select>
</mapper>
--
Gitblit v1.9.1