|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
//无法判定事件结束上报的类型有:占用应急车道,路障,逆行,机占非
|
|
|
|
//非持续性事件:拥堵、
|
|
|
|