From ce6b5be6c0e1544bcc66f9fce9efec3ced724d95 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 11 七月 2020 15:46:29 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/BasDevpMapper.xml | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/mapper/BasDevpMapper.xml b/src/main/resources/mapper/BasDevpMapper.xml
index 7e2b95f..0546242 100644
--- a/src/main/resources/mapper/BasDevpMapper.xml
+++ b/src/main/resources/mapper/BasDevpMapper.xml
@@ -41,15 +41,26 @@
</resultMap>
- <select id="getAvailableDevp" resultType="java.lang.Integer">
+ <select id="getAvailableInSite" resultType="java.lang.Integer">
select
abd.dev_no
from asr_bas_devp abd
left join asr_sta_desc asd on abd.dev_no = asd.stn_no
where 1=1
- and asd.type_no = 1
+ and asd.type_no = #{typeNo}
and abd.in_enable = 'Y'
group by abd.dev_no
</select>
+ <select id="getAvailableOutSite" resultType="java.lang.Integer">
+ select
+ abd.dev_no
+ from asr_bas_devp abd
+ left join asr_sta_desc asd on abd.dev_no = asd.stn_no
+ where 1=1
+ and asd.type_no = #{typeNo}
+ and abd.out_enable = 'Y'
+ group by abd.dev_no
+ </select>
+
</mapper>
--
Gitblit v1.9.1