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");