|
|
|
@ -2,9 +2,9 @@
|
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.cuit.railway.mapper.TSiteBaseInfoMapper">
|
|
|
|
|
<mapper namespace="com.cuit.solarenergy.mapper.TSiteBaseInfoMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.cuit.railway.entity.TStreamBaseInfo">
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.cuit.solarenergy.entity.TStreamBaseInfo">
|
|
|
|
|
<id property="streamCode" column="stream_code" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="streamName" column="stream_name" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="isDeleted" column="is_deleted" jdbcType="INTEGER"/>
|
|
|
|
@ -25,7 +25,7 @@
|
|
|
|
|
station_no = #{stationNo}
|
|
|
|
|
</update>
|
|
|
|
|
<!-- 根据某一个水质参数查询当前年份所有站点的相关信息-->
|
|
|
|
|
<select id="getAllSiteForOne" resultType="com.cuit.railway.vo.SitesInfoForOne">
|
|
|
|
|
<select id="getAllSiteForOne" resultType="com.cuit.solarenergy.vo.SitesInfoForOne">
|
|
|
|
|
SELECT site_id,
|
|
|
|
|
lon,
|
|
|
|
|
lat,
|
|
|
|
@ -36,7 +36,7 @@
|
|
|
|
|
(SELECT `code` FROM t_sampling_index WHERE `name` = #{waterQualityParameter})
|
|
|
|
|
</select>
|
|
|
|
|
<!-- 获取某一流域指定时间段指定水质参数所有采样点详情-->
|
|
|
|
|
<select id="getStreamAllSitesInfosForOne" resultType="com.cuit.railway.vo.SitesInfosForOne">
|
|
|
|
|
<select id="getStreamAllSitesInfosForOne" resultType="com.cuit.solarenergy.vo.SitesInfosForOne">
|
|
|
|
|
SELECT site_id as siteId,
|
|
|
|
|
index_value as indexValue,
|
|
|
|
|
create_time as createTime
|
|
|
|
@ -48,7 +48,7 @@
|
|
|
|
|
ORDER BY site_id, create_time DESC
|
|
|
|
|
</select>
|
|
|
|
|
<!-- 根据站点id查询站点基本信息-->
|
|
|
|
|
<select id="getSiteBaseInfoById" resultType="com.cuit.railway.vo.SiteBaseInfo">
|
|
|
|
|
<select id="getSiteBaseInfoById" resultType="com.cuit.solarenergy.vo.SiteBaseInfo">
|
|
|
|
|
SELECT DISTINCT
|
|
|
|
|
sit.lon AS lon,
|
|
|
|
|
sit.lat AS lat,
|
|
|
|
@ -88,7 +88,7 @@
|
|
|
|
|
WHERE stream_code = (SELECT stream_code FROM t_stream_base_info WHERE stream_name = #{stream})
|
|
|
|
|
</select>
|
|
|
|
|
<!-- 获取监测数据首页指定流域指定水质参数当前年的站点信息List-->
|
|
|
|
|
<select id="getMonitorSitesList" resultType="com.cuit.railway.entity.vo.ret.MonitorSitesVo">
|
|
|
|
|
<select id="getMonitorSitesList" resultType="com.cuit.solarenergy.entity.vo.ret.MonitorSitesVo">
|
|
|
|
|
SELECT DISTINCT site_id as siteId,
|
|
|
|
|
index_value as indexValue,
|
|
|
|
|
index_level as indexLevel,
|
|
|
|
@ -100,20 +100,20 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!--统计分析模块查询所有站点的经纬度-->
|
|
|
|
|
<select id="getSiteBaseInfoBySeparation" resultType="com.cuit.railway.entity.TSiteBaseInfo">
|
|
|
|
|
<select id="getSiteBaseInfoBySeparation" resultType="com.cuit.solarenergy.entity.TSiteBaseInfo">
|
|
|
|
|
SELECT station_no,
|
|
|
|
|
lon,
|
|
|
|
|
lat
|
|
|
|
|
FROM t_site_base_info
|
|
|
|
|
</select>
|
|
|
|
|
<!-- 返回所有站点经纬度 -->
|
|
|
|
|
<select id="getAllSiteList" resultType="com.cuit.railway.entity.vo.ret.SiteBaseInfoVoRet">
|
|
|
|
|
<select id="getAllSiteList" resultType="com.cuit.solarenergy.entity.vo.ret.SiteBaseInfoVoRet">
|
|
|
|
|
SELECT DISTINCT site_id as siteId,
|
|
|
|
|
lon as siteLon,
|
|
|
|
|
lat as siteLat
|
|
|
|
|
FROM t_sampling_data_details
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getList" resultType="com.cuit.railway.entity.TSiteBaseInfo">
|
|
|
|
|
<select id="getList" resultType="com.cuit.solarenergy.entity.TSiteBaseInfo">
|
|
|
|
|
SELECT
|
|
|
|
|
si.station_no,
|
|
|
|
|
si.stream_code,
|
|
|
|
@ -144,7 +144,7 @@
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<!-- 返回指定流域指定水质参数各站点数值信息-->
|
|
|
|
|
<select id="getValueOfSite" resultType="com.cuit.railway.entity.vo.ret.SiteAndValueVoRet">
|
|
|
|
|
<select id="getValueOfSite" resultType="com.cuit.solarenergy.entity.vo.ret.SiteAndValueVoRet">
|
|
|
|
|
SELECT site_id as siteId,
|
|
|
|
|
index_value as indexValue
|
|
|
|
|
FROM t_sampling_data_details
|
|
|
|
@ -155,7 +155,7 @@
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
<!-- <!– 根据站点、水质参数获取曲线所需的列表 –>-->
|
|
|
|
|
<!-- <select id="queryDataCurveByParams" resultType="com.cuit.railway.entity.vo.ret.StatisticQueryVoRet">-->
|
|
|
|
|
<!-- <select id="queryDataCurveByParams" resultType="com.cuit.solarenergy.entity.vo.ret.StatisticQueryVoRet">-->
|
|
|
|
|
<!-- SELECT-->
|
|
|
|
|
<!-- tsd.site_id,-->
|
|
|
|
|
<!-- tsd.create_time,-->
|
|
|
|
|