| | |
| | | import com.iailab.module.model.mcs.pre.vo.MmItemOutputRespVO; |
| | | import com.iailab.module.model.mcs.pre.vo.MmPredictAlarmMessageSaveReqVO; |
| | | import com.iailab.module.model.mcs.pre.vo.MmPredictItemRespVO; |
| | | import com.iailab.module.model.mcs.sche.entity.StScheduleModelEntity; |
| | | import com.iailab.module.model.mcs.sche.entity.StScheduleSuggestEntity; |
| | | import com.iailab.module.model.mcs.sche.service.StScheduleRecordService; |
| | | import com.iailab.module.model.mcs.sche.service.StScheduleSchemeService; |
| | | import com.iailab.module.model.mcs.sche.service.StScheduleSuggestService; |
| | | import com.iailab.module.model.mcs.sche.service.*; |
| | | import com.iailab.module.model.mcs.sche.vo.StScheduleSuggestSaveReqVO; |
| | | import com.iailab.module.model.mdk.vo.ItemVO; |
| | | import com.iailab.module.model.mpk.service.ChartParamService; |
| | |
| | | |
| | | @Autowired |
| | | private ElectricityPriceSegmentedService electricityPriceSegmentedService; |
| | | |
| | | @Autowired |
| | | private StScheduleModelService stScheduleModelService; |
| | | |
| | | @Autowired |
| | | private StScheduleModelSettingService stScheduleModelSettingService; |
| | | |
| | | |
| | | private int HOUR_MINS = 60; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | try { |
| | | String adjValuePoint = chartParams.get(CommonConstant.ADJ_VALUE_POINT); |
| | | if (StringUtils.isNotBlank(adjValuePoint)) { |
| | | List<String> pointNos = new ArrayList<>(); |
| | | pointNos.add(adjValuePoint); |
| | | Map<String, Object> adjValue = dataPointApi.queryPointsRealValue(pointNos); |
| | | dataView.setAdjValue(new BigDecimal(adjValue.get(adjValuePoint).toString())); |
| | | } |
| | | |
| | | String adjValueArrPoint = chartParams.get(CommonConstant.ADJ_VALUE_ARR_POINT); |
| | | if (StringUtils.isNotBlank(adjValueArrPoint)) { |
| | | String[] adjPointArr = adjValueArrPoint.split(","); |
| | | Map<String, Object> adjValue = dataPointApi.queryPointsRealValue(Arrays.asList(adjPointArr)); |
| | | BigDecimal[] adjValueArr = new BigDecimal[adjPointArr.length]; |
| | | for(int i = 0; i < adjPointArr.length; i++) { |
| | | adjValueArr[i] = new BigDecimal(adjValue.get(adjPointArr[i]).toString()); |
| | | } |
| | | dataView.setAdjValueArr(adjValueArr); |
| | | } |
| | | } catch (Exception ex) { |
| | | ex.printStackTrace(); |
| | | } |
| | | |
| | | result.setPredictTime(predictTime); |
| | | result.setStartTime(startTime); |
| | | result.setEndTime(endTime); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ScheduleSuggestRespDTO> listScheduleSuggest(Map<String, Object> params) { |
| | | return Collections.emptyList(); |
| | | public List<ScheduleSuggestRespDTO> listScheduleSuggest(ScheduleSuggestReqDTO vo) { |
| | | return stScheduleSuggestService.list(vo); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public Boolean updateScheduleModelSetting(String modelCode, String key, String value) { |
| | | StScheduleModelEntity model = stScheduleModelService.getByModelCode(modelCode); |
| | | stScheduleModelSettingService.updateByModelIdAndKey(model.getId(), key, value); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 计算功率因数 p²/(根号:p²+Q²) |
| | | **/ |