|
|
|
@ -225,9 +225,13 @@ public class AlarmRecordsServiceImpl implements IAlarmRecordsService {
|
|
|
|
|
Date curTime = collectionParamsManage.getCurTime(); |
|
|
|
|
// 阈值
|
|
|
|
|
String threshold1 = alarmRule.getThreshold1(); |
|
|
|
|
if (curValue.compareTo(BigDecimal.ZERO) <= 0) { |
|
|
|
|
if (curValue.compareTo(BigDecimal.ZERO) == 0) { |
|
|
|
|
// 发送到延迟队列
|
|
|
|
|
result.append(",").append(collectionParamsManage.getId()); |
|
|
|
|
} else if (curValue.compareTo(BigDecimal.ZERO) < 0) { |
|
|
|
|
continue; |
|
|
|
|
} else if (curValue.compareTo(new BigDecimal("100000")) > 0) { |
|
|
|
|
continue; |
|
|
|
|
} else { |
|
|
|
|
// 设置Redis取消标记(有效期略大于延迟时间)
|
|
|
|
|
redisTemplate.setCacheObject( |
|
|
|
|