From 9bc4c5f02cc53961725af9683b75899ac22a6720 Mon Sep 17 00:00:00 2001
From: dubin <bindu_bean@163.com>
Date: 星期三, 12 十一月 2025 12:32:22 +0800
Subject: [PATCH] #1
---
src/main/resources/mapper/LocMastMapper.xml | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index 9a68082..3584080 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -120,4 +120,24 @@
SELECT top 1 * FROM [dbo].[asr_loc_mast] WHERE barcode = #{zpallet}
</select>
+ <select id="queryLocToOne" resultMap="BaseResultMap">
+ select top 1 * from asr_loc_mast
+ where loc_status = 'O' and row1 in (1,2)
+ <if test="locType1 ! = null">
+ and loc_type1 = #{locType1}
+ </if>
+ order by lev1 asc,bay1 asc
+ </select>
+
+ <select id="queryLocToTwo" resultMap="BaseResultMap">
+ select top 1 * from asr_loc_mast
+ where loc_status = 'O' and row1 in (3,4)
+ <if test="locType2 == 7">
+ and lev1 in(1,2)
+ </if>
+ <if test="locType2 == 8">
+ and lev1 in(3,4,5,6)
+ </if>
+ order by lev1 asc,bay1 asc
+ </select>
</mapper>
--
Gitblit v1.9.1