package com.hzs.common.core.web.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @Description: 业务表的基础实体类，目前是用于需要走审批流的
 * @Author: sui q
 * @Time: 2022/9/1 9:32
 * @Classname: BusinessEntity
 * @PackageName: com.hzs.common.core.web.domain
 */
@EqualsAndHashCode(callSuper = true)
@Data
public abstract class BusinessEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 审核状态(1=待提交,2=已提交,3=审核中,4=已驳回,5=已完成,6=已归档)
     */
    @TableField("APPROVE_STATE")
    private Integer approveState;

    /**
     * 审核人
     */
    @TableField("APPROVER")
    private Long approver;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("APPROVE_TIME")
    private Date approveTime;


    /**
     * 审核备注
     */
    @TableField("APPROVE_REMARKS")
    private String approveRemarks;
}
