From 44613df8236ed4ed599b7687cdfc29e4a4d27256 Mon Sep 17 00:00:00 2001 From: mengff <1198151809@qq.com> Date: Mon, 4 Nov 2024 16:22:53 +0800 Subject: [PATCH] =?UTF-8?q?--=E6=B0=94=E8=B1=A1=E9=A2=84=E8=AD=A6=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=A2=9E=E5=8A=A0=E5=BB=BA=E8=AE=AE=E7=94=A8=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zc/business/controller/WeatherForecastController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java b/zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java index 94580470..44ff3d58 100644 --- a/zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java +++ b/zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java @@ -198,14 +198,14 @@ public class WeatherForecastController extends BaseController { && Objects.equals(ite.getWarningType(), UniversalEnum.TWO.getValue())).collect(Collectors.toList()); if (collect.size() == UniversalEnum.ZERO.getNumber()) { String content= WeatherTrafficProposeUtil.content(Integer.parseInt(warningLevel), earlyWarningType); - jsonObject.put("earlyWorningContent", jsonObject.getString("earlyWorningContent")+content); - WebSocketService.broadcast(UniversalEnum.THREE.getValue(), jsonObject); //推送事件消息 不是感知事件 DcNoStakeWarningTable dcNoStakeWarningTable = new DcNoStakeWarningTable(); dcNoStakeWarningTable.setWarningDescription(jsonObject.getString("earlyWorningContent")); dcNoStakeWarningTable.setWarningType(UniversalEnum.TWO.getValue()); dcNoStakeWarningTable.setWarningTime(jsonObject.getDate("earlyWorningIssueDate")); dcNoStakeWarningTable.setOtherConfig(String.valueOf(jsonObject)); noStakeWarningTableService.addDcNoStakeWarningTable(dcNoStakeWarningTable); + jsonObject.put("earlyWorningContent", jsonObject.getString("earlyWorningContent")+content); + WebSocketService.broadcast(UniversalEnum.THREE.getValue(), jsonObject); //推送事件消息 不是感知事件 } });