鞍钢鲅鱼圈能源管控系统后端代码
潘志宝
2025-05-23 2c3da9cae92a5850adfe2ad629994caaeaaf1d11
power
已修改1个文件
12 ■■■■■ 文件已修改
ansteel-biz/src/main/java/com/iailab/module/ansteel/api/controller/admin/PowerController.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ansteel-biz/src/main/java/com/iailab/module/ansteel/api/controller/admin/PowerController.java
@@ -335,6 +335,10 @@
        }
        for (PowerGenStatusEntity entity : list) {
            PowerGenStatusDTO dto = new PowerGenStatusDTO();
            dto.setId(entity.getId());
            dto.setName(entity.getName());
            dto.setSort(entity.getSort());
            List<String> points = new ArrayList<>();
            if (StringUtils.isNotBlank(entity.getCurP())) {
                points.add(entity.getCurP());
@@ -344,11 +348,11 @@
            }
            if (!CollectionUtils.isEmpty(points)) {
                Map<String, Object> pointsRealValue = dataPointApi.queryPointsRealValue(points);
                if (pointsRealValue.get(dto.getCurP()) != null) {
                    dto.setCurP(new BigDecimal(pointsRealValue.get(dto.getCurP()).toString()));
                if (pointsRealValue.get(entity.getCurP()) != null) {
                    dto.setCurP(new BigDecimal(pointsRealValue.get(entity.getCurP()).toString()));
                }
                if (pointsRealValue.get(dto.getCurQ()) != null) {
                    dto.setCurQ(new BigDecimal(pointsRealValue.get(dto.getCurQ()).toString()));
                if (pointsRealValue.get(entity.getCurQ()) != null) {
                    dto.setCurQ(new BigDecimal(pointsRealValue.get(entity.getCurQ()).toString()));
                }
            }