From 1983df9f47c76e3c047f386e82e89c5537f345ac Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期三, 05 十一月 2025 12:57:32 +0800
Subject: [PATCH] *

---
 src/main/resources/mapper/LocMastMapper.xml |   55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 54 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index 2c70150..c94c129 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -35,13 +35,66 @@
         <result column="PDC_TYPE" property="PdcType" />
         <result column="BARCODE" property="barcode" />
         <result column="CTN_NO" property="ctnNo" />
-        <result column="STATUS" property="status" />
         <result column="CONTAINER_CODE" property="containerCode" />
         <result column="CONTAINER_TYPE_CODE" property="containerTypeCode" />
         <result column="EMPTY_CONTAINER" property="emptyContainer" />
 
     </resultMap>
 
+    <sql id="batchSeq">
+        <if test="locSts != null and locSts != ''">
+            and LOC_STS = #{locSts}
+        </if>
+        <if test="locNo != null and locNo != ''">
+            and LOC_NO = #{locNo}
+        </if>
+        <if test="whsType != null and whsType != 0">
+            and WHS_TYPE = #{whsType}
+        </if>
+        <if test="crnNo != null and crnNo != 0">
+            and CRN_NO = #{crnNo}
+        </if>
+        <if test="row1 != null and row1 != 0">
+            and ROW1 = #{row1}
+        </if>
+        <if test="bay1 != null and bay1 != 0">
+            and BAY1 = #{bay1}
+        </if>
+        <if test="lev1 != null and lev1 != 0">
+            and LEV1 = #{lev1}
+        </if>
+    </sql>
+
+    <select id="selectLocMastListSix" resultMap="BaseResultMap">
+        SELECT * FROM "SOURCE"."asr_loc_mast"
+        WHERE 1=1
+        <include refid="batchSeq"></include>
+        LIMIT #{pageSize} OFFSET ((#{pageNumber} - 1) * #{pageSize});
+    </select>
+
+    <select id="selectLocMastListTotalSix" resultType="Long">
+        SELECT count(1) FROM "SOURCE"."asr_loc_mast"
+        WHERE 1=1
+        <include refid="batchSeq"></include>
+    </select>
+
+    <select id="selectLocMastList" resultMap="BaseResultMap">
+        SELECT * FROM "SOURCE"."asr_loc_mast"
+        WHERE 1=1
+        <if test="locNo != null and locNo != ''">
+            and LOC_NO like '%' + #{locNo} + '%'
+        </if>
+        LIMIT #{pageSize} OFFSET ((#{pageNumber} - 1) * #{pageSize});
+    </select>
+
+    <select id="selectLocMastListTotal" resultType="Long">
+        SELECT count(1) FROM "SOURCE"."asr_loc_mast"
+        WHERE 1=1
+        <if test="locNo != null and locNo != ''">
+            and LOC_NO like '%' + #{locNo} + '%'
+        </if>
+    </select>
+
     <select id="queryFreeLocMast" resultMap="BaseResultMap">
         select top 1 *
         from "SOURCE"."asr_loc_mast"

--
Gitblit v1.9.1