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 50ce257c..2f548620 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 @@ -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);