From b63ff58e2c415bae2fb4741aebe710fa3576ff66 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期一, 23 三月 2026 13:11:47 +0800
Subject: [PATCH] 2026年03月23日13:11:38 备份代码

---
 app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java |   74 +++++++++++++++++++++++++++++++++----
 1 files changed, 66 insertions(+), 8 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java b/app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java
index 23c31b7..4e5ee13 100644
--- a/app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java
+++ b/app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java
@@ -12,8 +12,6 @@
  * 浜戠閫嗗彉鍣ㄥ疄浣撶被
  */
 public class CloudInverterDeviceBean implements Serializable {
-
-
     /**
      * true-鍦ㄧ嚎
      * false-绂荤嚎
@@ -33,14 +31,14 @@
     private String systemStatusDesc;//鐘舵��
 
     private String inv;//inv鐘舵��
-    private int deviceStatus;//1:寰呮満,2:杩炴帴涓�,3:鏁呴殰,4:杩愯,5:绂荤嚎
+    private int deviceStatus;// 锛� 杩炴帴涓紝2 锛� 鏁呴殰锛�3 锛� 杩愯锛�4 锛� 绂荤嚎
     private String addresses;//瀛愮綉鍙�/璁惧鍙�
     private List<DeviceAttributeBean> status;
 
     private String hwVersion;//杞欢鐗堟湰鍙�
     private String categorySecondName;//璁惧绫诲瀷(浜у搧浜岀骇鍒嗙被鍚嶇О)
 
-    private String deviceType;//(璁惧绫诲瀷INV 锛� 閫嗗彉鍣�,BMS 锛� BMS鎺у埗鐩�,BATTERY 锛� 鐢垫睜鍗曞厓)
+    private String deviceType;//(璁惧绫诲瀷INV 锛� 閫嗗彉鍣�,BMS 锛� BMS鎺у埗鐩�,BATTERY 锛� 鐢垫睜鍗曞厓锛孡OAD_CENTRE 锛氳礋杞芥帶鍒朵腑蹇�)
 
     private String homeId;
     private String homeName;
@@ -48,6 +46,65 @@
     private String address;//璇︾粏鍦板潃
     private HouseInfoBean.Location location;//鐢电珯鍦板潃
     private String localSecret;//鎵�灞炵數绔欑殑鏈湴瀵嗛挜
+
+    private List<FwVersionBean> fwVersion = new ArrayList<>();//BMS璁惧鎵嶆湁鐨勫浐浠剁増鏈�
+    public List<FwVersionBean> getFwVersion() {
+        return fwVersion;
+    }
+
+    public void setFwVersion(List<FwVersionBean> fwVersion) {
+        this.fwVersion = fwVersion;
+    }
+
+    public boolean isActivate() {
+        return activate;
+    }
+
+    public void setActivate(boolean activate) {
+        this.activate = activate;
+    }
+
+    private boolean activate;//鏄惁婵�娲昏澶�(true锛氭縺娲伙紱false锛氭湭婵�娲�)
+
+    private boolean popUpgrade;//鏀硅澶囨槸鍚︽湁寮圭獥鍗囩骇
+    private boolean subPopUpgrade;//涓嬫寕璁惧鏄惁鏈夊脊绐楀崌绾�
+
+    public boolean isSubPopUpgrade() {
+        return subPopUpgrade;
+    }
+
+    public void setSubPopUpgrade(boolean subPopUpgrade) {
+        this.subPopUpgrade = subPopUpgrade;
+    }
+
+    public boolean isPopUpgrade() {
+        return popUpgrade;
+    }
+
+    public void setPopUpgrade(boolean popUpgrade) {
+        this.popUpgrade = popUpgrade;
+    }
+
+    public String getWorkStatusDesc() {
+        return workStatusDesc == null ? "" : this.workStatusDesc;
+    }
+
+    public void setWorkStatusDesc(String workStatusDesc) {
+        this.workStatusDesc = workStatusDesc;
+    }
+
+    private String workStatusDesc;//宸ヤ綔鐘舵�侊紙璐熻浇涓績璁惧锛�
+
+    private boolean ogMaster;//绂荤綉閫嗗彉鍣ㄦ墠杩斿洖
+
+
+    public boolean isOgMaster() {
+        return ogMaster;
+    }
+
+    public void setOgMaster(boolean ogMaster) {
+        this.ogMaster = ogMaster;
+    }
 
 
     public String getSystemStatusDesc() {
@@ -117,7 +174,8 @@
     }
 
     public String getSid() {
-        return sid == null ? "" : sid;
+
+        return TextUtils.isEmpty(sid) ? "" : sid;
     }
 
     public void setSid(String sid) {
@@ -267,12 +325,12 @@
      */
     public String getHomeAddress() {
         if (this.location == null) {
-            return this.address;
+            return this.getAddress();
         }
-        return this.location.getNationName() + this.location.getProvinceName() + this.location.getCityName() + this.address;
+        return this.location.getNationName() + " " + this.location.getProvinceName() + " " + this.location.getCityName() + " " + this.getAddress();
     }
 
     public String getHomeNameAndDeviceName() {
-        return homeName + "_" + this.getName();
+        return this.getHomeName() + "_" + this.getName();
     }
 }

--
Gitblit v1.8.0