From c1ef2d1fc4c0dae2bc8452924dcd77a0ff3a1ef5 Mon Sep 17 00:00:00 2001
From: cpT <1@123>
Date: 星期四, 19 六月 2025 15:02:52 +0800
Subject: [PATCH] #改造

---
 src/main/resources/mapper/LocMastMapper.xml |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index 7f04c45..c94c129 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -42,8 +42,11 @@
     </resultMap>
 
     <sql id="batchSeq">
+        <if test="locSts != null and locSts != ''">
+            and LOC_STS = #{locSts}
+        </if>
         <if test="locNo != null and locNo != ''">
-            and LOC_NO like '%' + #{locNo} + '%'
+            and LOC_NO = #{locNo}
         </if>
         <if test="whsType != null and whsType != 0">
             and WHS_TYPE = #{whsType}
@@ -63,31 +66,29 @@
     </sql>
 
     <select id="selectLocMastListSix" resultMap="BaseResultMap">
-        SELECT * FROM "SOURCE"."sys_role"
+        SELECT * FROM "SOURCE"."asr_loc_mast"
         WHERE 1=1
         <include refid="batchSeq"></include>
-        ORDER BY ID DESC
         LIMIT #{pageSize} OFFSET ((#{pageNumber} - 1) * #{pageSize});
     </select>
 
     <select id="selectLocMastListTotalSix" resultType="Long">
-        SELECT count(1) FROM "SOURCE"."sys_role"
+        SELECT count(1) FROM "SOURCE"."asr_loc_mast"
         WHERE 1=1
         <include refid="batchSeq"></include>
     </select>
 
     <select id="selectLocMastList" resultMap="BaseResultMap">
-        SELECT * FROM "SOURCE"."sys_role"
+        SELECT * FROM "SOURCE"."asr_loc_mast"
         WHERE 1=1
         <if test="locNo != null and locNo != ''">
             and LOC_NO like '%' + #{locNo} + '%'
         </if>
-        ORDER BY ID DESC
         LIMIT #{pageSize} OFFSET ((#{pageNumber} - 1) * #{pageSize});
     </select>
 
     <select id="selectLocMastListTotal" resultType="Long">
-        SELECT count(1) FROM "SOURCE"."sys_role"
+        SELECT count(1) FROM "SOURCE"."asr_loc_mast"
         WHERE 1=1
         <if test="locNo != null and locNo != ''">
             and LOC_NO like '%' + #{locNo} + '%'

--
Gitblit v1.9.1