package com.yida.data.attendance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yida.data.common.core.entity.attendance.EduAttendanceNotArrive;

import org.apache.ibatis.annotations.Param;

public interface EduAttendanceNotArriveMapper extends BaseMapper<EduAttendanceNotArrive> {
    /**
     * 查询是否存在
     */
    Integer existNotArrive(@Param("studentId") Long studentId);

    /**
     * 查询上一次最新的未到记录
     */
    EduAttendanceNotArrive getLast(@Param("studentId") Long studentId);
}
