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 d8378b55..805ab2c3 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 @@ -238,11 +238,16 @@ public class DeviceMessageHandler { /* JSONObject combinedData = new JSONObject(); combinedData.put("address", otherConfig);*/ dcWarning.setOtherConfig(otherConfig.toString()); - if (dcWarning.getWarningLevel() !=0){ + //异常天气等级 过滤 + if (data.getInteger("warningType") == VISIBILITY_LEVEL) { + int WarningLevel=data.getInteger("visibilityLevel"); + if (WarningLevel !=0){ + dcWarningService.insertDcWarning(dcWarning); + } + }else { dcWarningService.insertDcWarning(dcWarning); } - } //无法判定事件结束上报的类型有:占用应急车道,路障,逆行,机占非 //非持续性事件:拥堵、