| | |
| | | apiPointValueQueryDTO.setEnd(new Date()); |
| | | apiPointValueQueryDTO.setPointNo(dto.getMaxDemand()); |
| | | |
| | | List<ApiPointValueDTO> monthValues = dataPointApi.queryPointHistoryValue(apiPointValueQueryDTO); |
| | | double max = 0; |
| | | for (int i = 0; i < monthValues.size() - 1; i++) { |
| | | if (max < monthValues.get(i).getV()) { |
| | | max = monthValues.get(i).getV(); |
| | | } |
| | | } |
| | | dto.setMaxDemand(String.valueOf(max)); |
| | | Object maxValue = dataPointApi.queryPointMaxValue(apiPointValueQueryDTO); |
| | | dto.setMaxDemand(maxValue == null ? "" : maxValue.toString()); |
| | | } |
| | | |
| | | |