Browse Source

1、当采集记录小于等于0,则发送到延迟队列;

dev_mz
25604 1 day ago
parent
commit
f8dad021d8
  1. 2
      mh-system/src/main/java/com/mh/system/service/operation/impl/AlarmRecordsServiceImpl.java

2
mh-system/src/main/java/com/mh/system/service/operation/impl/AlarmRecordsServiceImpl.java

@ -225,7 +225,7 @@ public class AlarmRecordsServiceImpl implements IAlarmRecordsService {
Date curTime = collectionParamsManage.getCurTime(); Date curTime = collectionParamsManage.getCurTime();
// 阈值 // 阈值
String threshold1 = alarmRule.getThreshold1(); String threshold1 = alarmRule.getThreshold1();
if (curValue.compareTo(BigDecimal.ZERO) == 0) { if (curValue.compareTo(BigDecimal.ZERO) <= 0) {
// 发送到延迟队列 // 发送到延迟队列
result.append(",").append(collectionParamsManage.getId()); result.append(",").append(collectionParamsManage.getId());
} else { } else {

Loading…
Cancel
Save