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