燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-06-16 2ca4d36345464ccd8239bf3cea3430ead3554ff7
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)