package jnpf.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.util.Date;
import lombok.Data;

/**
 * <p>
 * 考勤审批设置表
 * </p>
 *
 * @author Auto-generator
 * @since 2023-11-21
 */
@Data
@TableName("ftb_attendance_approval_setting")
public class AttendanceApprovalSetting {

    /**
     * 自然主键
     */
    @TableId("F_Id")
    private String id;
    /**
     * 考勤组id
     */
    @TableField("F_GroupId")
    private String groupId;
    /**
     * 审批类型 1.常规补卡审批 2.调整出勤结果审批 3.外勤审批 4.请假审批 5.加班审批
     */
    @TableField("F_type")
    private Integer type;
    /**
     * 审批权限设置 1.考勤超级管理员 2.上级考勤管理员 3.当前组管理员 0.无需审批
     */
    @TableField("F_Permission")
    private Integer permission;

    @TableField("F_TenantId")
    private String tenantId;

    public AttendanceApprovalSetting(String groupId, Integer type, Integer permission) {
        this.groupId = groupId;
        this.type = type;
        this.permission = permission;
    }

    public AttendanceApprovalSetting() {
    }

    public AttendanceApprovalSetting(String id, String groupId, Integer type, Integer permission, String tenantId) {
        this.id = id;
        this.groupId = groupId;
        this.type = type;
        this.permission = permission;
        this.tenantId = tenantId;
    }
}
