From 040c966720e66bfa400181bb26d46ca59ac44e6c Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 16 八月 2022 16:07:18 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/LocMastMapper.xml |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index 2fe2065..a1cdb4b 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -42,17 +42,10 @@
         select top 1 *
         from asr_loc_mast
         where
-        row1 =
-        (
-        case
-        when #{row}=3 then 1
-        when #{row}=4 then 7
-        when #{row}=11 then 8
-        when #{row}=12 then 14
-        when #{row}=18 then 15
-        when #{row}=19 then 21
-        end
-        )
+        row1 in
+        <foreach item="item" collection="rows" index="index"  separator="," open="(" close=")">
+            #{item}
+        </foreach>
         <if test="locType1 != null">
             and loc_type1 = #{locType1}
         </if>
@@ -63,7 +56,7 @@
             and loc_type3 = #{locType3}
         </if>
         and loc_sts='O'
-        order by loc_sts desc ,lev1 asc,bay1 asc
+        order by loc_sts desc,row1 asc, lev1 asc, bay1 asc
     </select>
 
 </mapper>

--
Gitblit v1.9.1