From d74e41701d48afe3e36dbec7f242765fc47096ea Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期五, 05 十二月 2025 16:47:08 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/LocMastMapper.xml |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index 67c995b..5ae1ea1 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -33,19 +33,23 @@
         <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>
 
-    <select id="queryFreeLocMast" resultMap="BaseResultMap">
-        select top 1 *
-        from asr_loc_mast
-        where row1=#{row}
-        and loc_sts='O'
-        <if test="locType1 != null">
-            and loc_type1 = #{locType1}
+    <select id="getLevList" resultType="integer">
+        select DISTINCT lev1 from asr_loc_mast
+    </select>
+
+    <select id="selectLoc" resultMap="BaseResultMap">
+        select * from asr_loc_mast where 1 = 1
+        AND loc_sts = 'O'
+        AND row1 IN
+        <if test="rows != null">
+            <foreach collection="rows" item="row" open="(" separator="," close=")">
+                #{row}
+            </foreach>
         </if>
-        order by loc_sts desc ,lev1 asc,bay1 asc
+        order by bay1 asc, lev1 asc
     </select>
 </mapper>

--
Gitblit v1.9.1