From 6f7a815b2d6e4f30e7ccf901b24d5103aaa72078 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期一, 25 十二月 2023 10:23:08 +0800
Subject: [PATCH] Merge branch 'tzskasrs-1' of http://47.97.1.152:5880/r/zy-asrs into tzskasrs-1

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

diff --git a/src/main/resources/mapper/StaDescMapper.xml b/src/main/resources/mapper/StaDescMapper.xml
index b3bde73..92209c8 100644
--- a/src/main/resources/mapper/StaDescMapper.xml
+++ b/src/main/resources/mapper/StaDescMapper.xml
@@ -19,4 +19,33 @@
 
     </resultMap>
 
+    <!-- todo:luxiaotao  asd.crn_no = alm.crn_no -->
+    <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>
+    </select>
+
+    <select id="queryOutStaNosByCrnNo" resultType="java.lang.Integer">
+        select
+        distinct asd.stn_no
+        from asr_sta_desc asd
+        where 1=1
+        and asd.crn_no = #{crnNo}
+        and asd.type_no = #{typeNo}
+    </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