Browse Source

修改 主页事件推送

develop
王兴琳 7 months ago
parent
commit
35d9076086
  1. 5
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java
  2. 5
      zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

5
zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

@ -440,7 +440,10 @@ if (eventType !=3 &&dcEventId == null){//非 事件处置 和收费站等多条
}
}
String content= direction+" " + dcEvent.getStakeMark()+" "+HAPPEN+EventSubclass+EVENT ;
WebSocketService.broadcast(SUBEVENT, content); //推送事件消息 0不是感知事件
Map<String,Object> contentMap = new HashMap<>();
contentMap.put("content",content);
contentMap.put("event",dcEvent);
WebSocketService.broadcast(SUBEVENT, contentMap); //推送事件消息 0不是感知事件
}
//根据路网设施查询桩号

5
zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

@ -204,7 +204,10 @@ public class DcWarningServiceImpl implements IDcWarningService
}
}
String content= direction+" " + dcWarning.getStakeMark()+" "+HAPPEN+EventSubclass+EVENT ;
WebSocketService.broadcast(SUBEVENT, content); //推送事件消息 0不是感知事件
Map<String,Object> contentMap = new HashMap<>();
contentMap.put("content",content);
contentMap.put("event",dcWarning);
WebSocketService.broadcast(SUBEVENT, contentMap); //推送事件消息 0不是感知事件
}
//优先级策略(还差优先级策略需要配置)

Loading…
Cancel
Save