소스 검색

逆变器分析接口

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

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