From 271f8ac3fc635fcf96d3226dc7d37f81c9755c2b Mon Sep 17 00:00:00 2001
From: lsh <lsh123456>
Date: 星期五, 28 六月 2024 02:21:17 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/BasJarMastMapper.xml |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/BasJarMastMapper.xml b/src/main/resources/mapper/BasJarMastMapper.xml
index ae49b0b..6b72f0e 100644
--- a/src/main/resources/mapper/BasJarMastMapper.xml
+++ b/src/main/resources/mapper/BasJarMastMapper.xml
@@ -53,6 +53,20 @@
         order by jar_loc_digit desc
     </select>
 
+    <select id="getJarMastByJarIdAndStatusListB" resultMap="BaseResultMap">
+        select * from asr_bas_jar_mast
+        where 1=1
+        and
+        (
+        status in
+        <foreach collection="statusList" item="status" index="index" open="(" close=")" separator=",">
+            #{status}
+        </foreach>
+        )
+        and burial = #{jarId}
+        order by jar_loc_digit desc
+    </select>
+
     <select id="getJarMastByJarIdMax" resultMap="BaseResultMap">
         select top 1 * from asr_bas_jar_mast
         where 1=1
@@ -67,6 +81,20 @@
         order by jar_loc_digit desc
     </select>
 
+    <select id="getJarMastByJarIdMaxB" resultMap="BaseResultMap">
+        select top 1 * from asr_bas_jar_mast
+        where 1=1
+        and
+        (
+        status in
+        <foreach collection="statusList" item="status" index="index" open="(" close=")" separator=",">
+            #{status}
+        </foreach>
+        )
+        and burial = #{jarId}
+        order by jar_loc_digit desc
+    </select>
+
     <select id="getJarMastByJarIdMin" resultMap="BaseResultMap">
         select top 1 * from asr_bas_jar_mast
         where 1=1
@@ -81,6 +109,20 @@
         order by jar_loc_digit asc
     </select>
 
+    <select id="getJarMastByJarIdMinB" resultMap="BaseResultMap">
+        select top 1 * from asr_bas_jar_mast
+        where 1=1
+        and
+        (
+        status in
+        <foreach collection="statusList" item="status" index="index" open="(" close=")" separator=",">
+            #{status}
+        </foreach>
+        )
+        and burial = #{jarId}
+        order by jar_loc_digit asc
+    </select>
+
     <select id="getJarMastByJarIdCount" resultType="Integer">
         select count(1) from asr_bas_jar_mast
         where 1=1

--
Gitblit v1.9.1