ansteel-biz/src/main/java/com/iailab/module/ansteel/api/controller/admin/PowerController.java
@@ -117,8 +117,10 @@ if (StringUtils.isNotBlank(entity.getCurCos())) { points.add(entity.getCurCos()); } log.info("points=" + points); if (!CollectionUtils.isEmpty(points)) { Map<String, Object> pointsRealValue = dataPointApi.queryPointsRealValue(points); log.info("pointsRealValue=" + pointsRealValue); if (pointsRealValue.get(entity.getCurA()) != null) { powerNetFactorDTO.setCurA(new BigDecimal(pointsRealValue.get(entity.getCurA()).toString())); } @@ -135,6 +137,7 @@ } } catch (Exception ex) { log.info(entity.getNodeName() + "获取当前值异常" + ex.getMessage()); ex.printStackTrace(); } try { @@ -166,6 +169,7 @@ } } catch (Exception ex) { log.info(entity.getNodeName() + "获取预测值异常," + ex.getMessage()); ex.printStackTrace(); } // 设置电流状态 @@ -215,6 +219,7 @@ powerNetFactorDTO.setQStatus(0); } } result.add(powerNetFactorDTO); } return success(result); } ansteel-biz/src/main/java/com/iailab/module/ansteel/api/dto/PowerNetFactorDTO.java
@@ -1,5 +1,6 @@ package com.iailab.module.ansteel.api.dto; import com.alibaba.fastjson.annotation.JSONField; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; @@ -65,9 +66,11 @@ private Integer sort; @Schema(description = "有功是否超限(0:正常,1:超限)") @JSONField(name="pStatus") private Integer pStatus; @Schema(description = "无功是否超限(0:正常,1:超限)") @JSONField(name="qStatus") private Integer qStatus; @Schema(description = "功率因数是否超限(0:正常,1:超限)")