From 134c23aae116f94644d8331c096ff7085e43572b Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期三, 16 四月 2025 13:19:51 +0800 Subject: [PATCH] 2025年04月16日13:19:36 --- app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 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 c584bba..dcc800f 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 @@ -49,6 +49,16 @@ private HouseInfoBean.Location location;//鐢电珯鍦板潃 private String localSecret;//鎵�灞炵數绔欑殑鏈湴瀵嗛挜 + private boolean ogMaster;//绂荤綉閫嗗彉鍣ㄦ墠杩斿洖 + + public boolean isOgMaster() { + return ogMaster; + } + + public void setOgMaster(boolean ogMaster) { + this.ogMaster = ogMaster; + } + public String getSystemStatusDesc() { return systemStatusDesc == null ? "" : systemStatusDesc; @@ -117,7 +127,8 @@ } public String getSid() { - return sid == null ? "" : sid; + + return TextUtils.isEmpty(sid) ? "" : sid; } public void setSid(String sid) { @@ -269,7 +280,7 @@ if (this.location == null) { return this.address; } - return this.location.getNationName() + this.location.getProvinceName() + this.location.getCityName() + this.address; + return this.location.getNationName() + " " + this.location.getProvinceName() + " " + this.location.getCityName() + " " + this.address; } public String getHomeNameAndDeviceName() { -- Gitblit v1.8.0