package jnpf.model.attendance.model;

import jnpf.enums.attendance.AttendanceNoticeEnum;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * 出勤变动model
 *
 * @author yanwenfu
 * @create 2024-08-13
 */
@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class AttendanceChangeNoticeModel extends AttendanceNoticeModel {

    /** 操作人id */
    private String handleUserId;
    /** 出勤规则id */
    private String ruleId;
    /** 变更类型(-1: 缺卡, 1: 正常, 2: 迟到, 3: 早退, 99: 撤回变更) */
    private Integer changeType;
    /** 打卡类型(1: 上班, 2: 下班) */
    private Integer clockInType;


    public void setAttendanceNoticeModel(String userId, String tenantId, AttendanceNoticeEnum attendanceNoticeEnum) {
        super.setUserId(userId);
        super.setTenantId(tenantId);
        super.setAttendanceNoticeEnum(attendanceNoticeEnum);
    }
}
