wjc
2025-04-24 8a249407f9a91b696b88d74eea0fbf789d0ee6a4
app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java
@@ -48,15 +48,27 @@
    private String address;//详细地址
    private HouseInfoBean.Location location;//电站地址
    private String localSecret;//所属电站的本地密钥
    private boolean  master;//离网逆变器才返回
    public boolean isMaster() {
        return master;
    public String getWorkStatusDesc() {
        return workStatusDesc==null?"":this.workStatusDesc;
    }
    public void setMaster(boolean master) {
        this.master = master;
    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() {
@@ -126,7 +138,8 @@
    }
    public String getSid() {
        return sid == null ? "" : sid;
        return TextUtils.isEmpty(sid) ? "" : sid;
    }
    public void setSid(String sid) {
@@ -276,12 +289,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();
    }
}