wjc
2026-03-19 b2340ac4ce1c9ea2070c0e7fb72a03fb2b2500ad
app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java
@@ -12,8 +12,6 @@
 * 云端逆变器实体类
 */
public class CloudInverterDeviceBean implements Serializable {
    /**
     * true-在线
     * false-离线
@@ -33,20 +31,72 @@
    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 : 电池单元,LOAD_CENTRE :负载控制中心)
    private String homeId;
    private String homeName;
    private String outputActivePower;//逆变器输出有功功率
    private String address;//详细地址
    private HouseInfoBean.Location location;//电站地址
    private String localSecret;//所属电站的本地密钥
    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() {
        return systemStatusDesc == null ? "" : systemStatusDesc;
@@ -115,7 +165,8 @@
    }
    public String getSid() {
        return sid == null ? "" : sid;
        return TextUtils.isEmpty(sid) ? "" : sid;
    }
    public void setSid(String sid) {
@@ -250,6 +301,13 @@
        this.location = location;
    }
    public String getLocalSecret() {
        return localSecret == null ? "" : this.localSecret;
    }
    public void setLocalSecret(String localSecret) {
        this.localSecret = localSecret;
    }
    /**
     * 拼住宅地址
@@ -258,12 +316,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();
    }
}