package jnpf.entity.workflow;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jnpf.base.entity.SuperBaseEntity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * describe
 *
 * @author HuangLinPan
 * @date 2023/12/13
 */
@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName( value ="ftb_attendance_self_approve" )
public class SelfApprove extends SuperBaseEntity.SuperCUDBaseEntity<String> implements Serializable {

    private static final long serialVersionUID =  8981456888398343333L;

    /**
     * 借调考勤组
     */
    @TableField(value = "F_Group_Id")
    private String groupId;

    /**
     * 被借调考勤组id
     */
    @TableField(value = "F_Self_Group_Id")
    private String selfGroupId;

    /**
     * 借调考勤组名称
     */
    @TableField(value = "F_Group_Name")
    private String groupName;

    /**
     * 被借调考勤组名称
     */
    @TableField(value = "F_Self_Group_Name")
    private String selfGroupName;


    /**
     * 借调开始时间
     */
    @TableField(value = "F_Start_Time")
    private Date startTime;

    /**
     * 借调结束时间
     */
    @TableField(value = "F_End_Time")
    private Date endTime;

    /**
     * 流程任务主键
     */
    @TableField(value = "f_flowtaskid")
    private String flowtaskid;

    /**
     * 流程id
     */
    @TableField(value = "f_flowid")
    private String flowid;

    /**
     * 唯一id
     */
    @TableField(value = "F_UniqueId")
    private String uniqueid;

    /**
     * 租户ID
     */
    @TableField(value = "F_TenantId")
    private String tenantId;

//    /**
//     * 照片
//     */
//    @TableField(value = "F_Picture")
//    private String picture;

    /**
     * 照片
     */
    @TableField(value = "F_FileJson")
    private String fileJson;

    /** 流程标题 */
    @TableField(value = "F_FlowTitle")
    private String flowTitle;


    /** 申请人员 */
    @TableField(value = "F_ApplyUser")
    private String applyUser;

    /** 申请日期 */
    @TableField(value = "F_ApplyDate")
    private Date applyDate;

    /**
     * 是否审核通过 0.待审核  1.通过 2.未通过
     */
    @TableField(value = "F_Status")
    private Integer status = 0;

    /**
     * 理由原因
     */
    @TableField(value = "F_Reason")
    private String reason;

//    /**
//     * 离岗时间
//     */
//    @TableField(value = "F_Departure_Time")
//    private Date departureTime;
//
//    /**
//     * 回岗时间
//     */
//    @TableField(value = "F_Back_Time")
//    private Date backTime;

    /**
     * 离岗时间
     */
    @TableField(value = "F_Departure_Time")
    private Date leaveTime;

    /**
     * 回岗时间
     */
    @TableField(value = "F_Back_Time")
    private Date returnTime;

}
