From 39caebba35fc84824f5cd51d189fe322d5145803 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Tue, 09 Nov 2021 16:15:14 +0800
Subject: [PATCH] 1.山洪
---
src/main/java/org/springblade/modules/Stbprp/mapper/StbprpBMapper.xml | 84 +++++++++++++++++++++++++++++++++---------
1 files changed, 66 insertions(+), 18 deletions(-)
diff --git a/src/main/java/org/springblade/modules/Stbprp/mapper/StbprpBMapper.xml b/src/main/java/org/springblade/modules/Stbprp/mapper/StbprpBMapper.xml
index b231405..3cec535 100644
--- a/src/main/java/org/springblade/modules/Stbprp/mapper/StbprpBMapper.xml
+++ b/src/main/java/org/springblade/modules/Stbprp/mapper/StbprpBMapper.xml
@@ -36,7 +36,7 @@
<resultMap id="stbprpBResultMaps" type="org.springblade.modules.Stbprp.entity.StbprpB">
- <result column="stnm" property="stnm"/>
+ <result column="stnm" property="stnm"/>
</resultMap>
<!--通过站点名称,返回基础站信息-->
@@ -55,11 +55,49 @@
select * from dbo.ST_STBPRP_B ORDER BY BGFRYM DESC LIMIT #{startIndex},#{pageSize}
</select>-->
- <!-- 模糊查询-->
+
+ <!--站点详情-->
+ <select id="selectInfo" resultMap="stbprpBResultMap">
+ select st.STCD,
+ st.STNM,
+ st.RVNM,
+ st.HNNM,
+ st.BSNM,
+ st.LGTD,
+ st.LTTD,
+ st.STLC,
+ st.ADDVCD,
+ ad.ADDVNM as ADDVCD5,
+ st.DTMNM,
+ st.DTMEL,
+ st.DTPR,
+ st.STTP,
+ st.FRGRD,
+ st.ESSTYM,
+ st.BGFRYM,
+ st.ATCUNIT,
+ st.ADMAUTH,
+ st.LOCALITY,
+ st.STBK,
+ st.STAZT,
+ st.DSTRVM,
+ st.DRNA,
+ st.PHCD,
+ st.USFL,
+ st.COMMENTS,
+ st.MODITIME
+ from dbo.ST_STBPRP_B st
+ INNER JOIN dbo.ST_ADDVCD_D ad ON ad.ADDVCD = st.ADDVCD
+ where st.STCD = #{code}
+ ORDER BY st.MODITIME DESC
+ </select>
+
+
+ <!-- 模糊查询-->
<select id="selectList" resultMap="stbprpBResultMap">
- select * from dbo.ST_STBPRP_B where 1=1
+ select * from dbo.ST_STBPRP_B where 1=1
<if test="addvcd !=null and addvcd!=''">
- and ADDVCD=#{addvcd}
+ and ADDVCD=#{addvcd}
</if>
<if test="name !=null and name!=''">
@@ -70,28 +108,31 @@
<!--查询全部-->
<select id="selectAllList" resultMap="stbprpBResultMap">
- select * from dbo.ST_STBPRP_B ORDER BY MODITIME DESC
+ select *
+ from dbo.ST_STBPRP_B
+ ORDER BY MODITIME DESC
</select>
-
- <!--站点详情-->
- <select id="selectInfo" resultMap="stbprpBResultMap">
- select * from dbo.ST_STBPRP_B where STCD =#{code} ORDER BY MODITIME DESC
- </select>
<select id="selectInfos" resultType="java.util.Map">
- select LGTD,LTTD,STNM from dbo.ST_STBPRP_B where STCD =#{code}
- </select>
+ select LGTD, LTTD, STNM
+ from dbo.ST_STBPRP_B
+ where STCD = #{code}
+ </select>
<!--河道-->
<select id="selectRiverCode" resultType="java.lang.String">
- SELECT STCD from dbo.ST_STBPRP_B where STTP='ZZ'
+ SELECT STCD
+ from dbo.ST_STBPRP_B
+ where STTP = 'ZZ'
</select>
<!--水库-->
<select id="selectRsvrCode" resultType="java.lang.String">
- SELECT STCD from dbo.ST_STBPRP_B where STTP='RR'
+ SELECT STCD
+ from dbo.ST_STBPRP_B
+ where STTP = 'RR'
</select>
<select id="selectInfoCode" resultType="java.util.HashMap">
@@ -107,7 +148,10 @@
<!--降水-->
<select id="selectPptnCode" resultType="java.util.HashMap">
- select STCD from dbo.ST_STBPRP_B WHERE STTP='PP' ORDER BY ADDVCD5
+ select STCD
+ from dbo.ST_STBPRP_B
+ WHERE STTP = 'PP'
+ ORDER BY ADDVCD5
</select>
<!--东江源数据查询-->
@@ -120,16 +164,20 @@
<!--查询全部站点名称-->
<select id="selectSname" resultType="java.util.HashMap">
- select STNM from dbo.ST_STBPRP_B
+ select STNM
+ from dbo.ST_STBPRP_B
</select>
<select id="selectSnameInfo" resultMap="stbprpBNameResultMap">
- select STCD,STNM as siteName,LGTD,LTTD,STTP,ADDVCD as city,STLC as county from dbo.ST_STBPRP_B where STNM=#{STNM}
+ select STCD, STNM as siteName, LGTD, LTTD, STTP, ADDVCD as city, STLC as county
+ from dbo.ST_STBPRP_B
+ where STNM = #{STNM}
</select>
<select id="selectSnames" resultType="java.util.HashMap">
- select STNM,STCD as pid from dbo.ST_STBPRP_B
+ select STNM, STCD as pid
+ from dbo.ST_STBPRP_B
</select>
</mapper>
--
Gitblit v1.9.3