From bd3b23b214c7090d83c91f9b9a172d4f548033dd Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期一, 27 十月 2025 16:44:45 +0800
Subject: [PATCH] 13
---
src/main/resources/mapper/LocMastMapper.xml | 42 +++++++++++++++++++++++++++++++++++++++++-
1 files changed, 41 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index fb1bd8d..a9c6062 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -33,7 +33,6 @@
<result column="inv_wh" property="invWh" />
<result column="mk" property="mk" />
<result column="barcode" property="barcode" />
- <result column="Pdc_type" property="PdcType" />
<result column="ctn_no" property="ctnNo" />
</resultMap>
@@ -76,4 +75,45 @@
)
and (loc_sts = 'F' or loc_sts = 'D') and crn_no = #{crnNo}
</select>
+
+ <select id="selectLocShuttleMoveUnilateralY" resultMap="BaseResultMap">
+ select * from [dbo].[asr_loc_mast] where row1>1 and row1 < 18 and bay1 = #{bay} and lev1 = #{lev} and loc_sts='F' order by row1
+ </select>
+
+ <select id="selectLocShuttleMoveUnilateralN" resultMap="BaseResultMap">
+ select * from [dbo].[asr_loc_mast] where row1>17 and row1 < 31 and bay1 = #{bay} and lev1 = #{lev} and loc_sts='F' order by row1 desc
+ </select>
+
+ <select id="selectLocByLocStsPakInF1" resultMap="BaseResultMap">
+ SELECT top 1 * FROM [dbo].[asr_loc_mast] WHERE loc_no in
+ <foreach collection="locNos" item="locNo" index="index" open="(" close=")" separator=",">
+ #{locNo}
+ </foreach>
+ AND loc_sts not in ('O') order by row1
+ </select>
+
+ <select id="selectLocByLocStsPakInF2" resultMap="BaseResultMap">
+ SELECT top 1 * FROM [dbo].[asr_loc_mast] WHERE loc_no in
+ <foreach collection="locNos" item="locNo" index="index" open="(" close=")" separator=",">
+ #{locNo}
+ </foreach>
+ AND loc_sts not in ('O') order by row1 desc
+ </select>
+
+ <select id="selectLocByLocStsPakInO1" resultMap="BaseResultMap">
+ SELECT top 1 * FROM [dbo].[asr_loc_mast] WHERE loc_no in
+ <foreach collection="locNos" item="locNo" index="index" open="(" close=")" separator=",">
+ #{locNo}
+ </foreach>
+ AND loc_sts in ('O') order by row1 desc
+ </select>
+
+ <select id="selectLocByLocStsPakInO2" resultMap="BaseResultMap">
+ SELECT top 1 * FROM [dbo].[asr_loc_mast] WHERE loc_no in
+ <foreach collection="locNos" item="locNo" index="index" open="(" close=")" separator=",">
+ #{locNo}
+ </foreach>
+ AND loc_sts in ('O') order by row1
+ </select>
+
</mapper>
--
Gitblit v1.9.1