|
|
@@ -181,7 +181,8 @@ public class RedisExpiredPhotographListener extends KeyExpirationEventMessageLis
|
|
|
double rate = NumberUtil.div(collect.size(), warningConfig.getAnomalyCount().intValue());
|
|
|
double rate2 = NumberUtil.div(warningConfig.getAnomalyRate(), new Double(100));
|
|
|
log.info("当前识别率={},目标识别率={}",rate,rate2);
|
|
|
- if (rate > rate2) {
|
|
|
+ log.info("比较大小={}",NumberUtil.sub(rate, rate2));
|
|
|
+ if (NumberUtil.sub(rate, rate2) > 0) {
|
|
|
WarningNoticeLogDto warningNoticeLogDto = new WarningNoticeLogDto();
|
|
|
warningNoticeLogDto.setId(warningNoticeLog.getId());
|
|
|
warningNoticeLogDto.setWarningType(1);
|