Browse Source

#告警数量bug修改

zhongwei
yang_shj 9 months ago
parent
commit
a2639f069f
  1. 5
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java

5
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java

@ -135,6 +135,11 @@ public class AlarmServiceImpl extends BaseServiceImpl<AlarmMapper, AlarmEntity>
if(!StringUtil.isEmpty(alarm.getAlarmType())){ if(!StringUtil.isEmpty(alarm.getAlarmType())){
wrapper.eq("ALARM_TYPE",alarm.getAlarmType()); wrapper.eq("ALARM_TYPE",alarm.getAlarmType());
} }
// 处理告警过滤 :当天处理告警
List<String> handles = alarmHandleService.handles();
if(!CollectionUtil.isEmpty(handles)){
wrapper.notIn("ALARM_ID",handles);
}
// 查询告警数据 // 查询告警数据
List<AlarmEntity> alarms = this.list(wrapper); List<AlarmEntity> alarms = this.list(wrapper);
// 查询数量 // 查询数量

Loading…
Cancel
Save