Browse Source

异常天气等级 过滤

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

9
zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java

@ -238,11 +238,16 @@ public class DeviceMessageHandler {
/* JSONObject combinedData = new JSONObject(); /* JSONObject combinedData = new JSONObject();
combinedData.put("address", otherConfig);*/ combinedData.put("address", otherConfig);*/
dcWarning.setOtherConfig(otherConfig.toString()); 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); dcWarningService.insertDcWarning(dcWarning);
} }
} }
//无法判定事件结束上报的类型有:占用应急车道,路障,逆行,机占非 //无法判定事件结束上报的类型有:占用应急车道,路障,逆行,机占非
//非持续性事件:拥堵、 //非持续性事件:拥堵、

Loading…
Cancel
Save