Browse Source

#水位质量判断

zhongwei
yang_shj 8 months ago
parent
commit
8baca8a9f0
  1. 2
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/monitor/listener/AlarmListener.java
  2. 4
      hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/home/impl/RealTargetServiceImpl.java

2
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/monitor/listener/AlarmListener.java

@ -46,7 +46,7 @@ public class AlarmListener implements IQueueConsume {
// 步骤4.微信公众号发送 // 步骤4.微信公众号发送
if(ObjectUtil.isNotEmpty(alarm.getIsWxMessage()) && alarm.getIsWxMessage() == 0){ if(ObjectUtil.isNotEmpty(alarm.getIsWxMessage()) && alarm.getIsWxMessage() == 0){
//messageService.weChatMessage(alarm); messageService.weChatMessage(alarm);
} }
} }
} }

4
hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/home/impl/RealTargetServiceImpl.java

@ -1078,6 +1078,10 @@ public class RealTargetServiceImpl implements RealTargetService {
if(System.currentTimeMillis() - date.getTime() > 30 * 60 * 1000L){ if(System.currentTimeMillis() - date.getTime() > 30 * 60 * 1000L){
return 0.0; return 0.0;
} }
// 状态限制
if(fields.get(0).getQ() != 0){
return 0.0;
}
return Double.parseDouble(fields.get(0).getValue()); return Double.parseDouble(fields.get(0).getValue());
} }

Loading…
Cancel
Save