From af9a9143dabe3cd01d6768c8ac26640432dccfba Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期五, 14 三月 2025 11:06:33 +0800 Subject: [PATCH] 增加try catch, 增加log --- shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunScheduleOnaOptTask.java | 5 +++-- 1 files changed, 3 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 4a5fad6..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; @@ -125,7 +124,9 @@ } 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