From 8d8cbcc2d2325b972488ce47e993dfb538c8ba70 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期五, 21 六月 2024 15:00:45 +0800
Subject: [PATCH] #

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

diff --git a/src/main/resources/mapper/BasJarMastMapper.xml b/src/main/resources/mapper/BasJarMastMapper.xml
index a73dd49..8d7ed8a 100644
--- a/src/main/resources/mapper/BasJarMastMapper.xml
+++ b/src/main/resources/mapper/BasJarMastMapper.xml
@@ -20,7 +20,35 @@
         <result column="io_time" property="ioTime" />
         <result column="modi_time" property="modiTime" />
         <result column="appe_time" property="appeTime" />
+        <result column="jar_loc_digit" property="jarLocDigit" />
 
     </resultMap>
 
+    <select id="getJarMastByJarId" resultMap="BaseResultMap">
+        select * from asr_bas_jar_mast
+        where 1=1
+        and jar_id = #{jarId}
+        order by jar_loc_digit
+    </select>
+
+    <select id="getJarMastByJarIdMax" resultMap="BaseResultMap">
+        select top 1 * from asr_bas_jar_mast
+        where 1=1
+          and jar_id = #{jarId}
+        order by jar_loc_digit desc
+    </select>
+
+    <select id="getJarMastByJarIdMin" resultMap="BaseResultMap">
+        select top 1 * from asr_bas_jar_mast
+        where 1=1
+          and jar_id = #{jarId}
+        order by jar_loc_digit asc
+    </select>
+
+    <select id="getJarMastByJarIdCount" resultType="Integer">
+        select count(1) from asr_bas_jar_mast
+        where 1=1
+        and jar_id = #{jarId}
+    </select>
+
 </mapper>

--
Gitblit v1.9.1