package com.mortals.xhx.module.attendance.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.attendance.model.AttendanceRecordErrorEntity;

import java.util.Date;

/**
* AttendanceRecordErrorService
*
* 考勤打卡记录异常信息 service接口
*
* @author zxfei
* @date 2023-04-08
*/
public interface AttendanceRecordErrorService extends ICRUDService<AttendanceRecordErrorEntity,Long>{

    /***
     * 考勤异常确认前检测，如果当天有请假记录则返回false
     * @param errorId
     * @return
     */
    boolean errorConfirm(Long errorId);

    /**
     * 自动处理异常考勤记录
     * @param date
     */
    void doAutoProcess(Date date);
}