mac
2024-01-02 d1ebb94e1a17b7c25d4fcf73d85345d92cc86b5c
app/src/main/java/com/hdl/photovoltaic/ui/bean/HouseInfoBean.java
@@ -1,5 +1,8 @@
package com.hdl.photovoltaic.ui.bean;
/**
 * 电站详情实体类
 */
public class HouseInfoBean extends HouseIdBean {
    private Location location;//电站地址
    private String address;//详细地址
@@ -114,6 +117,7 @@
        this.zoneType = zoneType;
    }
    public static class Location {
        private String nationCode;//国家编码
        private String nationName;//国家名称
@@ -171,4 +175,17 @@
        }
    }
    /**
     * 拼住宅地址
     *
     * @return 住宅地址
     */
    public String getHomeAddress() {
        if (this.location == null) {
            return this.address;
        }
        return this.location.nationName + this.location.provinceName + this.location.cityName + this.address;
    }
}