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;

/**
 * 供应商综合审核对象 qp_supplier_synthetical_audit
 */
@ApiModel("供应商综合审核")
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class QpSupplierSyntheticalAudit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id,数据唯一标识 */
    @ApiModelProperty(value = "${comment}")
    private Long id;
    /** 审核人 */
    @Excel(name = "审核人")
    @Length(message = "审核人长度不能超过50")
    @ApiModelProperty(value = "审核人")
    private String auditUser;
    /** 审核内容 */
    @Excel(name = "审核内容")
    @Length(message = "审核内容长度不能超过500")
    @ApiModelProperty(value = "审核内容")
    private String auditContent;

    /** 审核类型 (1:供应商，2:人员，3:车辆) */
    @Excel(name = "审核类型 (1=供应商,2=人员,3=车辆)")
    @ApiModelProperty(value = "审核类型 (1:供应商,2:人员,3:车辆)")
    private Integer auditType;
    /** 审核时间 */
    @Excel(name = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "审核时间")
    private Date auditTime;
    /** 审核状态（0待审核，1通过，2驳回） */
    @Excel(name = "审核状态", readConverterExp = "0=待审核,1=通过,2=驳回")
    @ApiModelProperty(value = "审核状态 0=待审核，1=通过，2=驳回")
    private Integer status;
    /** 综合id（供应商id、车辆id、人员id） */
    @Excel(name = "综合id", readConverterExp = "1=应商id,2=车辆id,3=人员id")
    @ApiModelProperty(value = "综合id 1=应商id,2=车辆id,3=人员id")
    private Long syntheticalId;
}
