| | |
| | | List<SuYuan3d> get3d(@Param("tableName") String tableName, @Param("ids") List<String> ids); |
| | | |
| | | List<DistanceSuYuan> getDistanceSuYuan(@Param("tableName") String tableName, @Param("ids") List<String> ids); |
| | | |
| | | DistanceSuYuan getSuYuan500Max(@Param("tableName") String tableName, @Param("ids") List<String> ids); |
| | | |
| | | List<Temporary> getTemporary(@Param("tableName") String tableName, @Param("ids") List<String> ids); |
| | | |
| | |
| | | # 最大连接池数量 |
| | | maxActive: 100 |
| | | # 配置获取连接等待超时的时间 |
| | | maxWait: 60000 |
| | | maxWait: 600000 |
| | | # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 |
| | | timeBetweenEvictionRunsMillis: 60000 |
| | | # 配置一个连接在池中最小生存的时间,单位是毫秒 |
| | |
| | | # 最大连接池数量 |
| | | maxActive: 100 |
| | | # 配置获取连接等待超时的时间 |
| | | maxWait: 60000 |
| | | maxWait: 600000 |
| | | # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 |
| | | timeBetweenEvictionRunsMillis: 60000 |
| | | # 配置一个连接在池中最小生存的时间,单位是毫秒 |
| | |
| | | # 最大连接池数量 |
| | | maxActive: 100 |
| | | # 配置获取连接等待超时的时间 |
| | | maxWait: 60000 |
| | | maxWait: 600000 |
| | | # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 |
| | | timeBetweenEvictionRunsMillis: 60000 |
| | | # 配置一个连接在池中最小生存的时间,单位是毫秒 |
| | |
| | | </foreach> |
| | | ORDER BY z ASC, x ASC, y DESC |
| | | </select> |
| | | |
| | | <select id="getSuYuan500Max" resultMap="DistanceSuYuanResult"> |
| | | select id, x, y, format(c, 2) "c", u, v |
| | | from ${tableName} |
| | | where id in |
| | | <foreach collection="ids" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | order by c desc |
| | | limit 1; |
| | | </select> |
| | | |
| | | <select id="getAlarmsAnalyse" resultMap="SuYuan2dResult"> |
| | | SELECT id, x, y, c |
| | |
| | | |
| | | <select id="selectByTimeForYj" resultMap="WarningDetailResult"> |
| | | with rs as (select jcyj, jcbj from alert_config limit 1) |
| | | select id, table_name, su_yuan_id, location_name, 1 "type", create_time, value |
| | | select id, table_name, su_yuan_id, location_name, 1 "type", create_time, format(value, 2) "value" |
| | | from warning_detail |
| | | where create_time between #{startTime} and #{endTime} |
| | | and value >= (select jcyj from rs) and value < (select jcbj from rs) |
| | |
| | | |
| | | <select id="selectByTimeForBj" resultMap="WarningDetailResult"> |
| | | with rs as (select jcyj, jcbj from alert_config limit 1) |
| | | select id, table_name, su_yuan_id, location_name, 0 "type", create_time, value |
| | | select id, table_name, su_yuan_id, location_name, 0 "type", create_time, format(value, 2) "value" |
| | | from warning_detail |
| | | where create_time between #{startTime} and #{endTime} |
| | | and value >= (select jcbj from rs) |