package com.java110.dto.owner;

import com.java110.dto.PageDto;

import javax.swing.plaf.ListUI;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName FloorDto
 * @Description 业主属性数据层封装
 * @Author wuxw
 * @Date 2019/4/24 8:52
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
public class OwnerAttrDto extends PageDto implements Serializable {

    public static final String SPEC_CD_MACHINE_OPEN_COUNT = "7967001983";

    /**
     * 业主外部ID
     */
    public static final String SPEC_CD_EXT_OWNER_ID = "9329000004";

    public static final String SPEC_CD_ACCESS_CONTROL_KEY = "081606740011";

    public static String getValue(List<OwnerAttrDto> ownerAttrDtos, String specCd) {
        if (ownerAttrDtos == null || ownerAttrDtos.size() < 1) {
            return "";
        }

        for (OwnerAttrDto ownerAttrDto : ownerAttrDtos) {
            if (specCd.equals(ownerAttrDto.getSpecCd())) {
                return ownerAttrDto.getValue();
            }
        }
        return "";
    }

    private String attrId;
    private String specCd;
    private String communityId;
    private String value;
    private String memberId;
    private String[] memberIds;

    private String valueName;
    private String specName;
    private String listShow;


    private Date createTime;

    private String statusCd = "0";


    public String getAttrId() {
        return attrId;
    }

    public void setAttrId(String attrId) {
        this.attrId = attrId;
    }

    public String getSpecCd() {
        return specCd;
    }

    public void setSpecCd(String specCd) {
        this.specCd = specCd;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }


    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getStatusCd() {
        return statusCd;
    }

    public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }

    public String[] getMemberIds() {
        return memberIds;
    }

    public void setMemberIds(String[] memberIds) {
        this.memberIds = memberIds;
    }

    public String getValueName() {
        return valueName;
    }

    public void setValueName(String valueName) {
        this.valueName = valueName;
    }

    public String getSpecName() {
        return specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public String getListShow() {
        return listShow;
    }

    public void setListShow(String listShow) {
        this.listShow = listShow;
    }
}
