沙钢智慧能源系统后端代码
潘志宝
2025-02-07 44e84f1008d0c55c2e099c7b4b7eae866267b772
预警信息生成重复问题修复
已修改1个文件
3 ■■■■ 文件已修改
shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelPredictFinishConsumer.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelPredictFinishConsumer.java
@@ -106,7 +106,6 @@
                    }).collect(Collectors.toList()).stream().mapToDouble(Double::doubleValue).sum());
                    log.info("culValue:" + culValue);
                    // 生成预警信息
                    AlarmMessageRespDTO alarmMessage = new AlarmMessageRespDTO();
                    alarmMessage.setConfigId(configItem.getId());
@@ -131,7 +130,6 @@
                        alarmList.add(alarmMessage);
                        continue;
                    }
                    log.info("对比预测值是否超限");
                    int toIndex = result.size();
@@ -158,6 +156,7 @@
                        alarmMessage.setContent(content.toString());
                        mcsApi.createAlarmMessage(alarmMessage);
                        alarmList.add(alarmMessage);
                        break;
                    }
                }
            }