燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-06-16 2ca4d36345464ccd8239bf3cea3430ead3554ff7
1
已修改6个文件
23 ■■■■ 文件已修改
src/main/java/com/yssh/dao/SuYuanMapper.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application-dev.yml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application-prod.yml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application-test.yml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapping/SuYuanMapper.xml 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapping/WarningDetailMapper.xml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/yssh/dao/SuYuanMapper.java
@@ -24,6 +24,8 @@
    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);
    
src/main/resources/application-dev.yml
@@ -13,7 +13,7 @@
        # 最大连接池数量
        maxActive: 100
        # 配置获取连接等待超时的时间
        maxWait: 60000
        maxWait: 600000
        # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
        timeBetweenEvictionRunsMillis: 60000
        # 配置一个连接在池中最小生存的时间,单位是毫秒
src/main/resources/application-prod.yml
@@ -13,7 +13,7 @@
        # 最大连接池数量
        maxActive: 100
        # 配置获取连接等待超时的时间
        maxWait: 60000
        maxWait: 600000
        # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
        timeBetweenEvictionRunsMillis: 60000
        # 配置一个连接在池中最小生存的时间,单位是毫秒
src/main/resources/application-test.yml
@@ -13,7 +13,7 @@
        # 最大连接池数量
        maxActive: 100
        # 配置获取连接等待超时的时间
        maxWait: 60000
        maxWait: 600000
        # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
        timeBetweenEvictionRunsMillis: 60000
        # 配置一个连接在池中最小生存的时间,单位是毫秒
src/main/resources/mapping/SuYuanMapper.xml
@@ -103,6 +103,17 @@
        </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 
src/main/resources/mapping/WarningDetailMapper.xml
@@ -70,7 +70,7 @@
    <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 &lt; (select jcbj from rs)
@@ -79,7 +79,7 @@
    <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)