Explorar el Código

逆变器分析接口

宁檬 hace 1 año
padre
commit
aa1d8bfa99

+ 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;
         }
     }