From e2aa3f9c79ae688a56ea3bb5bc96ba1600f215de Mon Sep 17 00:00:00 2001
From: dubin <bindu_bean@163.com>
Date: 星期一, 15 十二月 2025 13:35:10 +0800
Subject: [PATCH] 初始化

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

diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index b92736d..731751e 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -51,13 +51,13 @@
 
     <select id="queryDemoSourceLoc" resultMap="BaseResultMap">
         select top 1 * from asr_loc_mast where crn_no = #{crnNo}
-        and loc_sts='D'
+        and loc_sts='F'
         ORDER BY NEWID()
     </select>
 
     <select id="queryDemoLoc" resultMap="BaseResultMap">
-        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O'
-        ORDER BY NEWID()
+        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_type1 = #{locType1} and loc_sts = 'O' and (ctn_kind=0 or ctn_kind is null)
+        ORDER BY lev1 asc,bay1 asc
     </select>
 
     <select id="selectByLocNo" resultMap="BaseResultMap">
@@ -65,4 +65,7 @@
         where loc_no = #{locNo}
     </select>
 
+    <select id="selectLocByLev" resultMap="BaseResultMap">
+        SELECT * FROM asr_loc_mast WHERE lev1 = #{lev}
+    </select>
 </mapper>

--
Gitblit v1.9.1