package com.zd.airbottle.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
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;

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

/**
 * 运输人员对象 qp_transport_user
 */
@ApiModel("运输人员")
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class QpTransportUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id,数据唯一标识 */
    @ApiModelProperty(value = "${comment}")
    private Long id;
    /** 姓名 */
    @Excel(name = "姓名")
    @Length(message = "姓名长度不能超过50")
    @ApiModelProperty(value = "姓名")
    private String userName;
    /** 手机号码 */
    @Excel(name = "手机号码")
    @Length(message = "手机号码长度不能超过11")
    @ApiModelProperty(value = "手机号码")
    private String phone;
    /** 是否已经审核（0为审核,1已经审核） */
    @Excel(name = "是否已经审核", readConverterExp = "0=未审核,1=已经审核,2=审核未通过")
    @ApiModelProperty(value = "是否已经审核（0=未审核,1=已经审核,2=审核未通过）")
    private Integer isAudit;
    /** 审核人 */
    @Excel(name = "审核人")
    @Length(message = "审核人长度不能超过50")
    @ApiModelProperty(value = "审核人")
    private String auditUser;
    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "审核时间")
    private Date auditTime;
    /** 供应商id */
    @Excel(name = "供应商id")
    @ApiModelProperty(value = "供应商id")
    private Long supplierId;

    private List<Long> supplierIds;

}
