Browse Source

设备离线报警不计入水质异常

yuejiaying 4 years ago
parent
commit
48aa399406
1 changed files with 2 additions and 1 deletions
  1. 2 1
      sms_water/src/main/resources/mapper/OnlineMonitorMapper.xml

+ 2 - 1
sms_water/src/main/resources/mapper/OnlineMonitorMapper.xml

@@ -351,7 +351,8 @@
         from sms_scene t1
         <include refid="deviceInnerJoins"/>
         left join(
-            select a1.scene_id, a1.device_id from sms_alarm_details a1 where a1.`status` = 1 and a1.state = 1 group by a1.scene_id, a1.device_id
+            select a1.scene_id, a1.device_id from sms_alarm_details a1 where a1.`status` = 1 and a1.state = 1 and a1.alarm_type = '参数报警'
+            group by a1.scene_id, a1.device_id
         )t7 on t7.scene_id=t2.scene_id and t7.device_id=t2.device_id
         where t1.parent_scene_id = 0 and t1. status = 1 and t1. enable_state = 1 and t3.scene_type_name = '管网'
         <choose>