| | |
| | | package com.iailab.module.shasteel.job.task; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | 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; |
| | |
| | | * 氮气预警模型 |
| | | * 预警信号 advice |
| | | * |
| | | * consumpOxygenTest |
| | | * 耗氧异常检测 |
| | | * 预警信号 advice |
| | | * |
| | | * @author PanZhibao |
| | | * @Description |
| | | * @createTime 2025年01月07日 |
| | |
| | | private static final String CODE05 = "05"; |
| | | |
| | | private static final String CODE01 = "01"; |
| | | |
| | | private static final String CODE_CONS = "consumpOxygenTest"; |
| | | |
| | | @Override |
| | | public void run(String params) { |
| | |
| | | if(adviceValues.compareTo(BigDecimal.ZERO) != 0){ |
| | | saveAlarmMessage("氮气预警", advice, scheduleObj, scheduleTime,adviceValues,scheduleScheme.getAdjustRate()); |
| | | } |
| | | }else if (entry.getKey().equals(CODE_CONS)) { |
| | | StScheduleSchemeDTO scheduleScheme = schemeMap.get(CODE_CONS); |
| | | String scheduleObj = scheduleScheme.getScheduleObj(); |
| | | BigDecimal adviceValues = new BigDecimal(entry.getValue().getResult().get("adviceValues").toString()); |
| | | logger.info("耗氧异常检测 adviceValues=" + adviceValues); |
| | | |
| | | String advice = entry.getValue().getResult().get("advice").toString(); |
| | | if(adviceValues.compareTo(BigDecimal.ZERO) != 0){ |
| | | saveAlarmMessage("耗氧异常检测", advice, scheduleObj, scheduleTime, adviceValues, scheduleScheme.getAdjustRate()); |
| | | } |
| | | } |
| | | } |
| | | logger.info(params + "调度方案执行完成"); |