|
|
@ -616,7 +616,6 @@ public class DeviceMessageHandler { |
|
|
|
} |
|
|
|
String content = direction + stakeMark + precipitationType; |
|
|
|
|
|
|
|
Map<String, Object> contentMap = new HashMap<>(); |
|
|
|
|
|
|
|
JSONObject object = new JSONObject(); |
|
|
|
object.put("meteorologicalDetectorData", meteorologicalDetectorData); |
|
|
@ -641,13 +640,10 @@ public class DeviceMessageHandler { |
|
|
|
if (direction.equals(UniversalEnum.DIRECTION_OF_JINAN.getValue())) { |
|
|
|
dcWarning.setDirection(UniversalEnum.THREE.getValue()); |
|
|
|
} |
|
|
|
contentMap.put("content", content); |
|
|
|
contentMap.put("event", dcWarning); |
|
|
|
|
|
|
|
WebSocketService.broadcast(WebSocketEvent.WARNING, contentMap); |
|
|
|
|
|
|
|
dcWarningService.insertDcWarning(dcWarning); |
|
|
|
|
|
|
|
|
|
|
|
//待确认数量
|
|
|
|
dcEventService.getCountNum(); |
|
|
|
} |
|
|
@ -664,10 +660,7 @@ public class DeviceMessageHandler { |
|
|
|
} |
|
|
|
String content = direction + stakeMark + precipitationType; |
|
|
|
|
|
|
|
Map<String, Object> contentMap = new HashMap<>(); |
|
|
|
contentMap.put("content", content); |
|
|
|
contentMap.put("event", meteorologicalDetectorData); |
|
|
|
WebSocketService.broadcast(WebSocketEvent.WARNING, contentMap); |
|
|
|
|
|
|
|
JSONObject object = new JSONObject(); |
|
|
|
object.put("meteorologicalDetectorData", meteorologicalDetectorData); |
|
|
|
String string = object.toString(); |
|
|
@ -691,9 +684,7 @@ public class DeviceMessageHandler { |
|
|
|
} |
|
|
|
|
|
|
|
dcWarningService.insertDcWarning(dcWarning); |
|
|
|
contentMap.put("content", content); |
|
|
|
contentMap.put("event", dcWarning); |
|
|
|
WebSocketService.broadcast(WebSocketEvent.WARNING, contentMap); |
|
|
|
|
|
|
|
|
|
|
|
//待确认数量
|
|
|
|
dcEventService.getCountNum(); |
|
|
|