From c2065749652cadd3f0ca69af80d9c244250772e0 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 20 一月 2025 22:57:01 +0800 Subject: [PATCH] AlarmTime --- shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelPredictFinishConsumer.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelPredictFinishConsumer.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelPredictFinishConsumer.java index 2d3b343..35368f1 100644 --- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelPredictFinishConsumer.java +++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelPredictFinishConsumer.java @@ -57,7 +57,6 @@ } Date predictTime = DateUtils.parse(messageJson.get("predictTime").toString(), DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND); - // 查询相关预警配置 List<AlarmConfigRespDTO> configList = mcsApi.listAlarmConfig(new HashMap<String, Object>()); if (CollectionUtils.isEmpty(configList)) { @@ -102,6 +101,7 @@ alarmMessage.setConfigId(configItem.getId()); alarmMessage.setTitle(configItem.getTitle()); alarmMessage.setAlarmObj(configItem.getAlarmObj()); + alarmMessage.setAlarmTime(predictTime); log.info("对比累计值是否超限"); StringBuilder content = new StringBuilder(); if (configItem.getCulUpper() != null && culValue.compareTo(configItem.getCulUpper()) > 0) { -- Gitblit v1.9.3