鞍钢鲅鱼圈能源管控系统后端代码
潘志宝
3 天以前 f7426b7804ad1ee1bfb3f1520ad035bcda54f852
ansteel-biz/src/main/java/com/iailab/module/ansteel/api/controller/admin/PowerController.java
@@ -467,11 +467,8 @@
            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());
                }
@@ -490,16 +487,12 @@
                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);
    }