소스 검색

逆变器分析接口

宁檬 2 년 전
부모
커밋
aa1d8bfa99
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      web/runeconomy-jjyx/src/main/java/com/gyee/runeconomy/dto/response/InverterAnalysis.java

+ 6 - 1
web/runeconomy-jjyx/src/main/java/com/gyee/runeconomy/dto/response/InverterAnalysis.java

@@ -56,8 +56,9 @@ public class InverterAnalysis {
     public void setInputPower(Double inputPower) {
         if (inputPower == null) {
             this.inputPower = 0.0;
+        } else {
+            this.inputPower = inputPower;
         }
-
     }
 
     public Double getOutputPower() {
@@ -67,6 +68,8 @@ public class InverterAnalysis {
     public void setOutputPower(Double outputPower) {
         if (outputPower == null) {
             this.outputPower = 0.0;
+        } else {
+            this.outputPower = outputPower;
         }
     }
 
@@ -77,6 +80,8 @@ public class InverterAnalysis {
     public void setInputVoltage(Double inputVoltage) {
         if (inputVoltage == null) {
             this.inputVoltage = 0.0;
+        } else {
+            this.inputVoltage = inputVoltage;
         }
     }