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 |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index fea16f2..5ae1ea1 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -16,6 +16,9 @@
         <result column="lev1" property="lev1" />
         <result column="full_plt" property="fullPlt" />
         <result column="loc_type" property="locType" />
+        <result column="loc_type1" property="locType1" />
+        <result column="loc_type2" property="locType2" />
+        <result column="loc_type3" property="locType3" />
         <result column="out_enable" property="outEnable" />
         <result column="io_time" property="ioTime" />
         <result column="first_time" property="firstTime" />
@@ -30,12 +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' order by loc_sts desc ,lev1 asc,bay1 asc
+    <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 bay1 asc, lev1 asc
     </select>
 </mapper>

--
Gitblit v1.9.1