package com.zd.airbottle.domain;

import com.zd.common.core.annotation.Excel;
import com.zd.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * 资质证照对象 qp_qualification_certificate
 * 
 * @author zd
 * @date 2022-05-19
 */
@ApiModel("资质证照")
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class QpQualificationCertificate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id,数据唯一标识 */
    @ApiModelProperty(value = "${comment}")
    private Long id;
    /** 资质名称 */
    @Excel(name = "资质名称")
    @Length(message = "资质名称长度不能超过20")
    @ApiModelProperty(value = "资质名称")
    private String name;
    /** 供应商类型 */
    @Excel(name = "供应商类型")
    @ApiModelProperty(value = "供应商类型")
    private Long supplierType;
    /** 资质类型（1:供应商资质，2:人员证照，3:车辆证照） */
    @Excel(name = "资质类型", readConverterExp = "1=供应商资质,2=人员证照,3=车辆证照")
    @ApiModelProperty(value = "资质类型(1:供应商资质，2:人员证照，3:车辆证照)")
    private Integer type;
    /** 排序类型 */
    @Excel(name = "排序类型")
    @ApiModelProperty(value = "排序类型",notes = "（0:否,1:是）")
    private Long sort;
    /** 是否必填 */
    @Excel(name = "是否必填",readConverterExp = "1=是,0=否")
    @ApiModelProperty(value = "是否必填",notes = "（0:否,1:是）")
    private Integer required;
    /** 是否选择有效期 */
    @Excel(name = "是否选择有效期",readConverterExp = "1=是,0=否")
    @ApiModelProperty(value = "是否选择有效期",notes = "（0:否,1:是）")
    private Integer validity;
}
