Browse Source

逆变器分析接口

宁檬 1 năm trước cách đây
mục cha
commit
9516ebfc21

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

@@ -65,8 +65,8 @@ public class InverterAnalysis {
     }
 
     public void setOutputPower(Double outputPower) {
-        if (inputPower == null) {
-            this.inputPower = 0.0;
+        if (outputPower == null) {
+            this.outputPower = 0.0;
         }
     }
 
@@ -75,8 +75,8 @@ public class InverterAnalysis {
     }
 
     public void setInputVoltage(Double inputVoltage) {
-        if (inputPower == null) {
-            this.inputPower = 0.0;
+        if (inputVoltage == null) {
+            this.inputVoltage = 0.0;
         }
     }