| | |
| | | if (StringUtils.isNotBlank(dto.getActivePower())) { |
| | | points.add(dto.getActivePower()); |
| | | } |
| | | |
| | | if (!CollectionUtils.isEmpty(points)) { |
| | | |
| | | Map<String, Object> pointsRealValue = dataPointApi.queryPointsRealValue(points); |
| | | |
| | | if (pointsRealValue.get(dto.getCurDemand()) != null) { |
| | | dto.setCurDemand(pointsRealValue.get(dto.getCurDemand()).toString()); |
| | | } |
| | |
| | | Date start = calendar.getTime(); |
| | | ApiPointValueQueryDTO apiPointValueQueryDTO = new ApiPointValueQueryDTO(); |
| | | apiPointValueQueryDTO.setStart(start); |
| | | apiPointValueQueryDTO.setEnd(new Date()); |
| | | apiPointValueQueryDTO.setPointNo(dto.getMaxDemand()); |
| | | |
| | | Object maxValue = dataPointApi.queryPointMaxValue(apiPointValueQueryDTO); |
| | | dto.setMaxDemand(maxValue == null ? "" : maxValue.toString()); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | return success(result); |
| | | } |
| | | |