沙钢智慧能源系统后端代码
dengzedong
2025-02-11 20e49829a15a4419bdae33a06a090d2f31ad6104
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());
@@ -115,6 +114,7 @@
                    alarmMessage.setAlarmTime(predictTime);
                    log.info("对比累计值是否超限");
                    StringBuilder content = new StringBuilder();
                    content.append(configItem.getTitle().replace("预警", ""));
                    if (configItem.getCulUpper() != null && culValue.compareTo(configItem.getCulUpper()) > 0) {
                        content.append("即将超出累计值上限");
                        alarmMessage.setAlarmType(CommonConstant.EXCEEDING_UPPER_LIMIT);
@@ -131,7 +131,6 @@
                        alarmList.add(alarmMessage);
                        continue;
                    }
                    log.info("对比预测值是否超限");
                    int toIndex = result.size();
@@ -158,6 +157,7 @@
                        alarmMessage.setContent(content.toString());
                        mcsApi.createAlarmMessage(alarmMessage);
                        alarmList.add(alarmMessage);
                        break;
                    }
                }
            }