From 3da64aec6196538807aaec302d61500316636c35 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期日, 28 九月 2025 11:33:14 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/StaDescMapper.xml | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mapper/StaDescMapper.xml b/src/main/resources/mapper/StaDescMapper.xml
index ab8b4c6..899cf1e 100644
--- a/src/main/resources/mapper/StaDescMapper.xml
+++ b/src/main/resources/mapper/StaDescMapper.xml
@@ -19,17 +19,21 @@
</resultMap>
- <select id="queryOutStaNosByLocNo" resultType="java.lang.Integer">
+ <select id="queryOutStaNosByLocNo" resultType="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="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