package com.zd.airbottle.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zd.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class QpSupplierVo {

    /** 主键id,数据唯一标识 */
    @ApiModelProperty(value = "主键id,数据唯一标识",notes = "数据主键，数据产生修改时由前端带入，新增可忽略")
    private Long id;
    /** 企业名称 */
    @Excel(name = "供应商名称")
    @ApiModelProperty(value = "企业名称")
    private String companyName;
    /** 企业简称 */
    @Excel(name = "供应商简称")
    @ApiModelProperty(value = "企业简称")
    private String companyShort;
    /** 联系人 */
    @Excel(name = "联系人")
    @ApiModelProperty(value = "联系人")
    private String contacts;
    /** 手机号码 */
    @Excel(name = "联系方式")
    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty("审核时间")
    private Date auditTime;

    @ApiModelProperty(value = "账号ID")
    private Long accountId;

    /** 人员数量总数 */
    @Excel(name = "运输人员数量")
    @ApiModelProperty(value = "人员数量总数")
    private Integer peopleSum;

    /** 运输车辆总数 */
    @Excel(name = "运输车辆数量")
    @ApiModelProperty(value = "运输车辆总数")
    private Integer carSum;

    /** 气瓶数量总数 */
    @Excel(name = "气瓶数量")
    @ApiModelProperty(value = "气瓶数量总数")
    private Integer bottleSum;

    @Excel(name = "当前状态",readConverterExp = "0=启用,1=停用")
    @ApiModelProperty(value = "资格状态（0：启用，1:停用）")
    private Integer status;

    @ApiModelProperty(value = "审核状态（0：未审核，1:审核通过，2：审核未通过）")
    private Integer state;

    /** 经营备案 */
    @ApiModelProperty(value = "经营备案")
    private String businessRecord;
    /** 经营地址 */
    @ApiModelProperty(value = "经营地址")
    private String businessAddress;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 供应商资质证件集合
     */
    @ApiModelProperty(value = "供应商资质证件集合")
    private List<QpSupplierCredentialsVo> qpSupplierCredentialsVos;

    /**
     * 供应商审核信息
     */
    @ApiModelProperty(value = "供应商审核信息")
    private QpSupplierSyntheticalAuditVo audit;

}
