| | |
| | | |
| | | // 获取预测历史结果 |
| | | InfluxModelResultPOJO pojo = new InfluxModelResultPOJO(); |
| | | pojo.setType(DataTypeEnum.FLOAT_LAST_BAK.getCode()); |
| | | pojo.setType(DataTypeEnum.FLOAT_LAST.getCode()); |
| | | pojo.setOutPutId(configEntity.getOutputId()); |
| | | List<InfluxModelResultVO> influxModelResult = influxDBService.queryModelResults(pojo, new Date(adjustStartTime), new Date(adjustStartTime)); |
| | | if (CollectionUtils.isEmpty(influxModelResult)) { |
| | |
| | | return false; |
| | | } |
| | | |
| | | // 调整系数 |
| | | adjustValue = adjustValue * configEntity.getAdjustCoefficient(); |
| | | // 调整方向 |
| | | adjustValue = adjustValue * configEntity.getAdjustDirection(); |
| | | |