代码调整
This commit is contained in:
parent
46d85c4562
commit
ee6b03c850
@ -60,15 +60,6 @@ public class SwitchLostMostAlertListener implements AlertSourceEventListener<Swi
|
||||
}
|
||||
if (event.alert) {
|
||||
//检测大面积失表
|
||||
/*alertManager.putAlterDevice(lineId, mostName, switchBuild.getId());
|
||||
if (alertManager.needMostShow(lineId, mostName, guardConfig.getSwitchLostMostNums())) {
|
||||
String warnDevices = alertManager.findAllWarnDevice(lineId, mostName);
|
||||
this.findDeviceIdFormCode(lineId, alertManager.findAllWarnDeviceForList(lineId, mostName));
|
||||
String alertMsg = String.format("%s-大面积失表设备[%s]", mostName, warnDevices);
|
||||
NccAlertInfo alertInfo = this.alertInfoService.createAlert2(alertInfoMostOpt, AlertType.SWITCH_LOST_MOST, switchBuild, alertMsg, warnDevices,
|
||||
AlertDeviceType.DEVICE_TYPE_SWITCH, false);
|
||||
alertManager.emit(alertInfo);
|
||||
}*/
|
||||
boolean isMost = alertManager.needMostShow(lineId, mostName, guardConfig.getSwitchLostMostNums());
|
||||
alertManager.putAlterDevice(lineId, mostName, switchBuild.getId());
|
||||
if (!isMost && alertManager.needMostShow(lineId, mostName, guardConfig.getSwitchLostMostNums())) {
|
||||
|
Loading…
Reference in New Issue
Block a user