package com.chushang.inspection.project.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chushang.common.mybatis.annotation.Condition;
import com.chushang.common.mybatis.base.BaseEntity;

import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
  * @auther: zhao
  * @date: 2024/6/15 10:51
  */
/**
 * 审核记录表
 */
@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wrk_audit")
public class WrkAudit extends BaseEntity {
    /**
     * 编号
     */
    @TableId(value = "audit_id", type = IdType.ASSIGN_ID)
    @Condition(name = "audit_id", type = Condition.ConditionType.eq)
    private Long auditId;

    /**
     * 三方id
     */
    @TableField(value = "third_id")
    @Condition(name = "third_id", type = Condition.ConditionType.eq)
    private Long thirdId;

    /**
     * 审核状态
     */
    @TableField(value = "audit_status")
    @Condition(name = "audit_status", type = Condition.ConditionType.eq)
    private Integer auditStatus;

    /**
     * 审核类型 0 项目, 1 合同, 2 其他(待补充)
     */
    @TableField(value = "third_type")
    @Condition(name = "third_type", type = Condition.ConditionType.eq)
    private Integer thirdType;

    /**
     * 审核时间 timestamp
     */
    @TableField(value = "audit_time")
    private LocalDateTime auditTime;

    /**
     * 审核人 当前审核用户Id
     */
    @TableField(value = "audit_user_id")
    @Condition(name = "audit_user_id", type = Condition.ConditionType.eq)
    private Long auditUserId;

    /**
     * 审核人名称
     */
    @TableField(value = "audit_name")
    private String auditName;

    /**
     * 备注 审核通过以及审核驳回结果都在此存储,
     */
    @TableField(value = "remark")
    private String remark;
    /**
     * 部门
     */
    @TableField("dept_id")
    private Long deptId;
}
