From 5e8f2ee4b32186b49aac02104b92154afc4b75e6 Mon Sep 17 00:00:00 2001
From: Jay <csj123456>
Date: 星期四, 06 三月 2025 10:03:33 +0800
Subject: [PATCH] 增加判断,氮气压力正常不存入表中

---
 shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunScheduleOnaOptTask.java |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 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 f33f03d..0511d29 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
@@ -1,7 +1,6 @@
 package com.iailab.module.shasteel.job.task;
 
 import com.iailab.module.model.api.mcs.McsApi;
-import com.iailab.module.model.api.mcs.dto.AlarmMessageRespDTO;
 import com.iailab.module.model.api.mcs.dto.ScheduleSuggestRespDTO;
 import com.iailab.module.model.api.mcs.dto.StScheduleSchemeDTO;
 import com.iailab.module.model.api.mdk.MdkApi;
@@ -108,24 +107,26 @@
                     String scheduleObj = schemeMap.get(CODE05).getScheduleObj();
                     String faAdvice = entry.getValue().getResult().get("faAdvice").toString();
                     String hongAdvice = entry.getValue().getResult().get("hongAdvice").toString();
-                    String runAdvice = entry.getValue().getResult().get("RunAdvice").toString();
+                    String runAdvice = entry.getValue().getResult().get("runAdvice").toString();
                     String yingdiAdvice = entry.getValue().getResult().get("yingdiAdvice").toString();
                     if(!yingdiAdvice.equals("压力正常")){
-                        saveScheduleSuggest("盈德中压建议调整量", yingdiAdvice, scheduleObj, scheduleTime);
+                        saveScheduleSuggest("盈德中压调整建议", yingdiAdvice, scheduleObj, scheduleTime);
                     }
                     if(!faAdvice.equals("压力正常")){
-                        saveScheduleSuggest("法夜空建议调整量", faAdvice, scheduleObj, scheduleTime);
+                        saveScheduleSuggest("法夜空调整建议", faAdvice, scheduleObj, scheduleTime);
                     }
                     if(!hongAdvice.equals("压力正常")){
-                        saveScheduleSuggest("宏昌建议调整量", hongAdvice, scheduleObj, scheduleTime);
+                        saveScheduleSuggest("宏昌调整建议", hongAdvice, scheduleObj, scheduleTime);
                     }
                     if(!runAdvice.equals("压力正常")){
-                        saveScheduleSuggest("润忠建议调整量", runAdvice, scheduleObj, scheduleTime);
+                        saveScheduleSuggest("润忠调整建议", runAdvice, scheduleObj, scheduleTime);
                     }
                 } else if (entry.getKey().equals(CODE01)) {
                     String scheduleObj = schemeMap.get(CODE01).getScheduleObj();
                     String advice = entry.getValue().getResult().get("advice").toString();
-                    saveScheduleSuggest("氮气预警", advice, scheduleObj, scheduleTime);
+                    if(!"压力正常".equals(advice)){
+                        saveScheduleSuggest("氮气预警", advice, scheduleObj, scheduleTime);
+                    }
                 }
             }
             logger.info(params + "调度方案执行完成");

--
Gitblit v1.9.3