package com.njcn.rdms.module.project.dal.dataobject.overtime;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.rdms.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 业务学习表。
 */
@TableName("rdms_overtime_application")
@Data
@EqualsAndHashCode(callSuper = true)
public class OvertimeApplicationDO extends BaseDO {

    @TableId
    private Long id;

    private Long applicantId;

    private String applicantName;

    private LocalDate overtimeDate;

    private String overtimeDuration;

    private String overtimeReason;

    private String overtimeContent;

    private Long approverId;

    private String approverName;

    private String statusCode;

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String approvalComment;

    private LocalDateTime submitTime;

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private LocalDateTime approvalTime;

}
