package com.chushang.inspection.work.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.base.BaseEntity;

import java.time.LocalDateTime;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
  * @auther: zhao
  * @date: 2024/6/27 18:13
  */
/**
 * 工单审核表
 */
@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wrk_info_audit")
public class WrkInfoAudit extends BaseEntity {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 工单id
     */
    @TableField(value = "wrk_id")
    private Long wrkId;

    /**
     * 审核人
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 审核人
     */
    @TableField(value = "user_name")
    private String userName;

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

    /**
     * 审核状态
     */
    @TableField(value = "audit_state")
    private Integer auditState;

    /**
     * 审核描述
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 是否为历史记录 1是  0否
     */
    @TableField(value = "is_record")
    private Integer isRecord;

    /**
     * 所属部门
     */
    @TableField(value = "dept_id")
    private Long deptId;
}
