| | |
| | | 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.ScheduleSuggestRespDTO; |
| | | import com.iailab.module.model.api.mcs.dto.StScheduleSchemeDTO; |
| | |
| | | // 氧气系统优化调度决策 |
| | | StScheduleSchemeDTO scheduleScheme = schemeMap.get(CODE05); |
| | | String scheduleObj = scheduleScheme.getScheduleObj(); |
| | | String yingdiAdvice = entry.getValue().getResult().get("yingdiAdvice").toString(); |
| | | /*String yingdiAdvice = entry.getValue().getResult().get("yingdiAdvice").toString(); |
| | | String faAdvice = entry.getValue().getResult().get("faAdvice").toString(); |
| | | String hongAdvice = entry.getValue().getResult().get("hongAdvice").toString(); |
| | | String runAdvice = entry.getValue().getResult().get("runAdvice").toString(); |
| | | /*JSONArray adviceValues = JSONArray.parseArray(entry.getValue().getResult().get("adviceValues").toString()); |
| | | List<BigDecimal> adviceValueList = new ArrayList<>(); |
| | | if (!CollectionUtils.isEmpty(adviceValues)) { |
| | | for (int i = 0; i < adviceValues.size(); i++) { |
| | | adviceValueList.add(new BigDecimal(adviceValues.get(i).toString())); |
| | | } |
| | | }*/ |
| | | if(!yingdiAdvice.equals("压力正常")){ |
| | | saveScheduleSuggest("盈德中压调整建议", yingdiAdvice, scheduleObj, scheduleTime); |
| | | } |
| | |
| | | } |
| | | if(!runAdvice.equals("压力正常")){ |
| | | saveScheduleSuggest("润忠调整建议", runAdvice, scheduleObj, scheduleTime); |
| | | }*/ |
| | | |
| | | double[][] adviceValues = (double[][])entry.getValue().getResult().get("adviceValues"); |
| | | logger.info("adviceValues=" + Arrays.toString(adviceValues)); |
| | | String advice = entry.getValue().getResult().get("advice").toString(); |
| | | if(!advice.contains("压力正常")){ |
| | | saveScheduleSuggest("各制氧机组建议", advice, scheduleObj, scheduleTime, new BigDecimal(adviceValues[0][0]), scheduleScheme.getAdjustRate()); |
| | | } |
| | | |
| | | } else if (entry.getKey().equals(CODE01)) { |
| | | StScheduleSchemeDTO scheduleScheme = schemeMap.get(CODE05); |
| | | String scheduleObj = scheduleScheme.getScheduleObj(); |