Browse Source

推送

develop
王兴琳 6 months ago
parent
commit
b00335247a
  1. 10
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

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

@ -546,19 +546,27 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl
*/ */
private void extracted(DcEvent dcEvent) { private void extracted(DcEvent dcEvent) {
String direction = "";// 方向 String direction = "";// 方向
String content="";
String EventSubclass = "";// 事件类型 String EventSubclass = "";// 事件类型
if (dcEvent.getDirection()!=null){
if (dcEvent.getDirection().equals("1")) { if (dcEvent.getDirection().equals("1")) {
direction = "菏泽方向"; direction = "菏泽方向";
} else { } else {
direction = "济南方向"; direction = "济南方向";
} }
}
for (EventSubclassEnum eventSubclass : EventSubclassEnum.values()) { for (EventSubclassEnum eventSubclass : EventSubclassEnum.values()) {
if (eventSubclass.getCode().equals(dcEvent.getEventSubclass())) { if (eventSubclass.getCode().equals(dcEvent.getEventSubclass())) {
EventSubclass = eventSubclass.getInfo(); EventSubclass = eventSubclass.getInfo();
break; break;
} }
} }
String content = direction + " " + dcEvent.getStakeMark() + " " + HAPPEN + EventSubclass + EVENT; if (dcEvent.getDirection()!=null){
content = direction + " " + dcEvent.getStakeMark() + " " + HAPPEN + EventSubclass + EVENT;
}else {
content = dcEvent.getStakeMark() + " " + HAPPEN + EventSubclass + EVENT;
}
Map<String, Object> contentMap = new HashMap<>(); Map<String, Object> contentMap = new HashMap<>();
contentMap.put("content", content); contentMap.put("content", content);
contentMap.put("event", dcEvent); contentMap.put("event", dcEvent);

Loading…
Cancel
Save