宁檬 преди 1 година
родител
ревизия
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;
         }
     }