/*
 * Author: wangjian
 * 生成entity
 */
package com.tofly.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 审批表
 *
 * @author zev
 * @date Fri May 21 00:00:00 CST 2021
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "TF_YMPN_AUDIT_W", resultMap = "auditMap")
@KeySequence("TF_YMPN_AUDIT_W")
@ApiModel
public class Audit extends Model<Audit> {
    private static final long serialVersionUID = 1L;

    /**
     * $column.comments
     */
    @TableId(value = "ID", type = IdType.INPUT)
    @ApiModelProperty(value = "$column.comments")
    private Long id;
    /**
     * 审批类型
     */
    @ApiModelProperty(value = "审批类型")
    private String auditType;
    /**
     * 当前审批计划id
     */
    @ApiModelProperty(value = "当前审批计划id")
    private Long auditPlanId;
    /**
     * 审批状态(0未审核,1通过,2未通过,3不可审批)
     */
    @ApiModelProperty(value = "审批状态(0未审核,1通过,2未通过,3不可审批)")
    private String auditState;
    @TableField(exist = false)
    private String auditStateName;
    /**
     * 审核时间
     */
    @ApiModelProperty(value = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;
    /**
     * 审核意见
     */
    @ApiModelProperty(value = "审核意见")
    private String auditNote;
    /**
     * 审核人ID
     */
    @ApiModelProperty(value = "审核人ID")
    private Long auditUser;

    @TableField(exist = false)
    private String auditUserName;
    /**
     * 审批级别
     */
    @ApiModelProperty(value = "审批级别")
    private Integer auditLevel;


}
