Browse Source

事件推送 应急车道 修改 下行减一

develop
王兴琳 7 months ago
parent
commit
8e1c114ef6
  1. 10
      zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java

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

Loading…
Cancel
Save