From 65c305f9e8af6fdb4f80b85484b1170f068aa1fa Mon Sep 17 00:00:00 2001
From: zc <zc>
Date: 星期三, 10 九月 2025 10:43:27 +0800
Subject: [PATCH] 1

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

diff --git a/src/main/resources/mapper/StaDescMapper.xml b/src/main/resources/mapper/StaDescMapper.xml
index b3bde73..e1d47ca 100644
--- a/src/main/resources/mapper/StaDescMapper.xml
+++ b/src/main/resources/mapper/StaDescMapper.xml
@@ -19,4 +19,24 @@
 
     </resultMap>
 
+    <select id="queryOutStaNosByLocNo" resultType="java.lang.Integer">
+        select
+        distinct asd.stn_no
+        from asr_sta_desc asd
+        left join asr_loc_mast alm on asd.crn_no = alm.crn_no
+        where 1=1
+        and alm.loc_no = #{locNo}
+        <if test="typeNo != null and typeNo !=''">
+            and asd.type_no = #{typeNo}
+        </if>
+        order  by asd.stn_no desc
+    </select>
+
+    <select id="queryCrnStn" resultMap="BaseResultMap">
+        select top 1 * from asr_sta_desc
+        where 1=1
+        and crn_no = #{crnNo}
+        and type_no = 1
+    </select>
+
 </mapper>

--
Gitblit v1.9.1