| | |
| | | } |
| | | schemeMap.clear(); |
| | | Map<String, MdkScheduleRespDTO> resultMap = new HashMap<String, MdkScheduleRespDTO>(); |
| | | schemeList.forEach(item -> { |
| | | schemeMap.put(item.getCode(), item); |
| | | StScheduleSchemeDTO scheme = schemeList.get(0); |
| | | schemeList.forEach(scheme -> { |
| | | schemeMap.put(scheme.getCode(), scheme); |
| | | MdkScheduleReqDTO dto = new MdkScheduleReqDTO(); |
| | | dto.setScheduleTime(scheduleTime); |
| | | dto.setScheduleCode(scheme.getCode()); |
| | | MdkScheduleRespDTO mdkScheduleRespDTO = mdkApi.doSchedule(dto); |
| | | resultMap.put(item.getCode(), mdkScheduleRespDTO); |
| | | resultMap.put(scheme.getCode(), mdkScheduleRespDTO); |
| | | }); |
| | | if (CollectionUtils.isEmpty(resultMap)) { |
| | | logger.info("resultMap为空"); |
| | |
| | | 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(); |