package com.iformall.domain.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.iformall.domain.po.KwMeter;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;


/**
 * @author gongbiao
 */
@JsonIgnoreProperties(value = {"handler"})
@Data
public class KwMerchantMeterVo {


    @io.swagger.annotations.ApiModelProperty(value="商户ID",name="name")
    private String id;

    @io.swagger.annotations.ApiModelProperty(value="商户状态",name="name")
    private String status;

    @io.swagger.annotations.ApiModelProperty(value="租户ID",name="name")
    private String tenantId;

    @io.swagger.annotations.ApiModelProperty(value="商户名",name="name")
    private String merchantName;

    @io.swagger.annotations.ApiModelProperty(value="商户联系方式",name="linkPhone")
    private String merchantLinkPhone;

    @io.swagger.annotations.ApiModelProperty(value = "店铺列表", name = "shopVoList")
    private List<WxShopVo> shopVoList;

    @io.swagger.annotations.ApiModelProperty(value = "电表列表", name = "meterList")
    private List<KwMeter> meterList;


    @io.swagger.annotations.ApiModelProperty(value = "电表列表", name = "meterList")
    private Integer meterCount;

    public Integer getMeterCount() {
        if (meterList.isEmpty())
            return 0;
        else
            return meterList.size();
    }
}
