From fcc38f90f19b5dd09bac80cfa3069817c6243acb Mon Sep 17 00:00:00 2001
From: czkh <czkh@163.com>
Date: 星期四, 11 十二月 2025 09:37:50 +0800
Subject: [PATCH] #1

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

diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index 17f1767..4361479 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -53,7 +53,7 @@
         from asr_loc_mast
         where row1=#{row}
         and loc_sts='O'
-        and row1 != #{row}
+        and bay1 != #{bay}
         <if test="locType1 != null">
             and loc_type1 = #{locType1}
         </if>
@@ -67,7 +67,7 @@
     </select>
 
     <select id="queryDemoLoc" resultMap="BaseResultMap">
-        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O'
+        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O' and loc_type1 = #{locType1}
         ORDER BY NEWID()
     </select>
 

--
Gitblit v1.9.1