From 17633f5fc40cbb92ac4a584ca58f408faeecfe77 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 07 一月 2025 14:32:48 +0800 Subject: [PATCH] 氮气预警 --- shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunScheduleOnaOptTask.java | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunScheduleOnaOptTask.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunScheduleOnaOptTask.java index d5828bd..d53b1b9 100644 --- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunScheduleOnaOptTask.java +++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunScheduleOnaOptTask.java @@ -27,13 +27,17 @@ * 宏昌建议送出量 hongAdvice * 润忠建议送出量 RunAdvice * 调整值 adviceValues - * <p> + * * 05 * 氧气系统优化调度决策 * 盈德中压建议调整量 yingdiAdvice * 法夜空建议调整量 faAdvice * 宏昌建议调整量 hongAdvice * 润忠建议调整量 RunAdvice + * + * 01 + * 氮气预警模型 + * 预警信号 advice * * @author PanZhibao * @Description @@ -54,6 +58,8 @@ private static final String CODE06 = "06"; private static final String CODE05 = "05"; + + private static final String CODE01 = "01"; @Override public void run(String params) { @@ -109,9 +115,12 @@ saveScheduleSuggest("宏昌建议调整量", hongAdvice, scheduleObj, scheduleTime); String runAdvice = entry.getValue().getResult().get("RunAdvice").toString(); saveScheduleSuggest("宏昌建议调整量", runAdvice, scheduleObj, scheduleTime); + } else if (entry.getKey().equals(CODE01)) { + String scheduleObj = schemeMap.get(CODE05).getScheduleObj(); + String advice = entry.getValue().getResult().get("advice").toString(); + saveScheduleSuggest("氮气预警", advice, scheduleObj, scheduleTime); } } - logger.info(params + "调度方案执行完成"); } catch (Exception ex) { logger.error("RunScheduleOnaOptTask运行异常"); -- Gitblit v1.9.3