|
|
@ -236,8 +236,7 @@ public class DcWarningServiceImpl implements IDcWarningService |
|
|
|
contentMap.put("content",content); |
|
|
|
contentMap.put("event",dcWarning); |
|
|
|
WebSocketService.broadcast(WebSocketEvent.WARNING, contentMap); //推送事件消息 0不是感知事件
|
|
|
|
Long count = dcEventService.getCountNum(); |
|
|
|
WebSocketService.broadcast(WebSocketEvent.EVENT_COUNT, count); //推送待处理数量
|
|
|
|
dcEventService.getCountNum(); |
|
|
|
} |
|
|
|
|
|
|
|
//优先级策略(还差优先级策略需要配置)
|
|
|
@ -527,8 +526,7 @@ public class DcWarningServiceImpl implements IDcWarningService |
|
|
|
return AjaxResult.error("操作失败"); |
|
|
|
} |
|
|
|
//推送待处理数量
|
|
|
|
Long count = dcEventService.getCountNum(); |
|
|
|
WebSocketService.broadcast(WebSocketEvent.EVENT_COUNT,count); |
|
|
|
dcEventService.getCountNum(); |
|
|
|
return AjaxResult.success("操作成功"); |
|
|
|
|
|
|
|
} |
|
|
@ -624,7 +622,12 @@ public class DcWarningServiceImpl implements IDcWarningService |
|
|
|
if (dcWarnings.size()==0){ |
|
|
|
return 1; |
|
|
|
} |
|
|
|
return dcWarningMapper.updateEndSection(dcWarnings); |
|
|
|
Integer i = dcWarningMapper.updateEndSection(dcWarnings); |
|
|
|
|
|
|
|
//推送待处理消息数量
|
|
|
|
dcEventService.getCountNum(); |
|
|
|
|
|
|
|
return i; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -947,8 +950,7 @@ public class DcWarningServiceImpl implements IDcWarningService |
|
|
|
dcWarning.setUpdateTime(DateUtils.getNowDate()); |
|
|
|
Integer i = dcWarningMapper.falseAlarmResolution(dcWarning); |
|
|
|
//推送待处理数量
|
|
|
|
Long count = dcEventService.getCountNum(); |
|
|
|
WebSocketService.broadcast(WebSocketEvent.EVENT_COUNT,count); |
|
|
|
dcEventService.getCountNum(); |
|
|
|
return i; |
|
|
|
} |
|
|
|
|
|
|
|