Parcourir la source

Merge remote-tracking branch 'origin/20210223' into 20210223

wangyangyang il y a 4 ans
Parent
commit
ff99890eee
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      sms_water/src/main/resources/mapper/OnlineMonitorMapper.xml

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

@@ -488,7 +488,7 @@
         <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
-            <if test="sceneTypeName != null and sceneTypeName !=''">
+            <if test="(sceneTypeName != null and sceneTypeName !='') or flag == 1">
                 and a1.alarm_type = '参数报警'
             </if>
             group by a1.scene_id, a1.device_id