From 195bb64bbaece12287b43e913e5dfaa4c31a2aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Mon, 9 Dec 2024 09:36:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=B7=E8=BE=BE=E6=96=B9=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/zc/business/enums/UniversalEnum.java | 2 +- .../business/message/device/handler/DeviceMessageHandler.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java b/zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java index ac1d7ea6..7d34045f 100644 --- a/zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java +++ b/zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java @@ -2470,7 +2470,7 @@ RADAR_ASSOCIATED_MONITORING_POINT_QUERY_INTERFACE(0,"/api/radar/v1/selectRelateB PULL_UP(4, "停车"), // 非法停车 - ILLEGAL_PARKING(4, "illegalParking"), + ILLEGAL_PARKING(4, "parallelParking"), // 逆行 RETROGRADE_MOTION(5, "逆行"), diff --git a/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java b/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java index 8a95802d..7d5b69c1 100644 --- a/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java +++ b/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java @@ -163,7 +163,8 @@ public class DeviceMessageHandler { return; } DcDevice dcDevice = dcDevices.get(UniversalEnum.ZERO.getNumber()); - String direction = dcDevice.getDirection(); +// String direction = dcDevice.getDirection(); + String direction = jsonObject.getString("laneNo"); String stakeMark = dcDevice.getStakeMark(); Date happenTime = jsonObject.getDate("happenTime"); SimpleDateFormat sdf = new SimpleDateFormat(UniversalEnum.CHINESE_CHARACTER_TIME_FORMAT.getValue());