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.dict.annotation.DictFormat;
import com.chushang.common.mybatis.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
  * @auther: zhao
  * @date: 2024/6/27 18:13
  */

/**
 * 工单审核表
 */
@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wrk_audit_rule")
public class WrkAuditRule extends BaseEntity {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;


    /**
     * 状态
     */
    @TableField(value = "status")
    private boolean status;


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

    /**
     * 规则名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 规则时间
     */
    @TableField(value = "rule_time")
    private String ruleTime;


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

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

    /**
     * 分钟数量
     */
    @TableField(value = "number")
    private Integer number;

    /**
     * 单位
     */
    @TableField(value = "number_type")
    @DictFormat(dictType = "sys_auditTime_type")
    private Integer numberType;

    /**
     * 条数
     */
    @TableField(value = "number_wrk")
    private Integer numberWrk;


    @TableField(exist = false)
    private List<String> ruleTimeList;
}
