From b00335247a2c54d49a2ad0ac4bf978e51ecfe9ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Fri, 31 May 2024 20:02:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zc/business/service/impl/DcEventServiceImpl.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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);