package jnpf.model.attendance.model;

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

import java.util.Date;
import java.util.List;

/**
 * 连续缺勤消息model
 *
 * @author yanwenfu
 * @create 2024-08-12
 */
@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ConsecutiveAbsenceNoticeModel extends AttendanceNoticeModel {

    /** 考勤组名称 */
    private String groupName;
    /** 用户名称 */
    private String userName;
    /** 缺勤日期 */
    private String absenceDate;
    /** 接收消息用户 */
    private List<String> toUserList;
    /** 连续缺勤详情 */
    private AbsenceDetailModel absenceDetailModel;

    public void setAttendanceNoticeModel(String userId, String groupId, String tenantId, Date day, AttendanceNoticeEnum attendanceNoticeEnum) {
        super.setUserId(userId);
        super.setGroupId(groupId);
        super.setTenantId(tenantId);
        super.setDay(day);
        super.setAttendanceNoticeEnum(attendanceNoticeEnum);
    }
}
