From 8e1c114ef67ec7a2e9fbe2ae9eb6ae5853f755af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Wed, 24 Apr 2024 16:57:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E6=8E=A8=E9=80=81=20?= =?UTF-8?q?=E5=BA=94=E6=80=A5=E8=BD=A6=E9=81=93=20=E4=BF=AE=E6=94=B9=20?= =?UTF-8?q?=E4=B8=8B=E8=A1=8C=E5=87=8F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../message/device/handler/DeviceMessageHandler.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 b601d32c..e5eb11de 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 @@ -188,10 +188,16 @@ public class DeviceMessageHandler { if (arr[2] != null) { if (arr[2].equals("上行")) { direction = arr[0] + " " + arr[1] + " 菏泽方向 "; + Integer relatedLaneNo = data.getInteger("relatedLaneNo"); + if (relatedLaneNo==5){ + relatedLaneNo=0; + } + dcWarning.setLane(String.valueOf(relatedLaneNo)); + } if (arr[2].equals("下行")) { direction = arr[0] + " " + arr[1] + " 济南方向 "; - + dcWarning.setLane(String.valueOf(data.getInteger("relatedLaneNo")-1)); } } @@ -200,7 +206,7 @@ public class DeviceMessageHandler { dcWarning.setWarningTitle(title); dcWarning.setRemark(DateUtil.formatDateTime(DateUtil.date(captureTime)) + " " + title); // 影响车道 - dcWarning.setLane(String.valueOf(data.getInteger("relatedLaneNo"))); + // 物联设备id String iotDeviceId = event.getString("deviceId");