Browse Source

气象检测器 (异常天气推送)推送

develop
王兴琳 5 months ago
parent
commit
f47bbf59f1
  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

@ -619,6 +619,11 @@ if (meteorologicalDetectorData.getPrecipitationType().equals("1")){
String string = object.toString();
DcWarning dcWarning = new DcWarning();
dcWarning.setWarningState(1);
dcWarning.setRemark(content);
dcWarning.setWarningTime(new Date());
dcWarning.setWarningType(8);
dcWarning.setWarningSubclass("8-1");
dcWarning.setStakeMark(stakeMark);
dcWarning.setWarningSource(7);//气象检测器
@ -655,6 +660,11 @@ if (meteorologicalDetectorData.getPrecipitationType().equals("1")){
object.put("meteorologicalDetectorData", meteorologicalDetectorData);
String string = object.toString();
DcWarning dcWarning = new DcWarning();
dcWarning.setWarningState(1);
dcWarning.setRemark(content);
dcWarning.setWarningTime(new Date());
dcWarning.setWarningType(8);
dcWarning.setWarningSubclass("8-4");
dcWarning.setStakeMark(stakeMark);
dcWarning.setWarningSource(7);//气象检测器
dcWarning.setOtherConfig(string);

Loading…
Cancel
Save