| | |
| | | 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 id="selectAllList" resultMap="stbprpBResultMap"> |
| | | 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 * |
| | | from dbo.ST_STBPRP_B |
| | | 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 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"> |
| | |
| | | |
| | | <!--降水--> |
| | | <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> |
| | | |
| | | <!--东江源数据查询--> |
| | |
| | | |
| | | <!--查询全部站点名称--> |
| | | <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> |