diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java index d263d7f9..464dcb6b 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java @@ -546,19 +546,27 @@ public class DcEventServiceImpl extends ServiceImpl 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 contentMap = new HashMap<>(); contentMap.put("content", content); contentMap.put("event", dcEvent);