package com.cool.store.entity.tp;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import javax.persistence.*;

/**
 * <p>
 * 十二分制-审批记录
 * </p>
 *
 * @author wangff
 * @since 2025/11/4
 */
@Table(name = "zxjp_tp_audit_record")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TpAuditRecordDO {
    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 单据类型，0加分单 1警告书 2处罚书
     */
    @Column(name = "apply_type")
    private Integer applyType;

    /**
     * 申请单id
     */
    @Column(name = "apply_id")
    private Long applyId;

    /**
     * 记录类型，1申请提交 2审批操作
     */
    @Column(name = "record_type")
    private Integer recordType;

    /**
     * 审批状态，0待处理 1通过 2拒绝
     */
    @Column(name = "audit_status")
    private Integer auditStatus;

    /**
     * 备注
     */
    private String remark;

    /**
     * 处理人
     */
    @Column(name = "handler_user_id")
    private String handlerUserId;

    /**
     * 处理人名称
     */
    @Column(name = "handler_user_name")
    private String handlerUserName;

    /**
     * 收到任务时间
     */
    @Column(name = "receive_task_time")
    private Date receiveTaskTime;

    /**
     * 完成任务时间
     */
    @Column(name = "finish_task_time")
    private Date finishTaskTime;

    /**
     * 是否删除，0否1是
     */
    private Integer deleted;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;
}