package yangtz.cs.liu.campus.mapper.schoolAtt;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yangtz.cs.liu.campus.domain.schoolAtt.SchoolAtt;
import yangtz.cs.liu.campus.vo.schoolAtt.SchoolAttVO;

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

@Mapper
public interface SchoolAttMapper extends BaseMapper<SchoolAtt> {
    /**
     * 打卡记录列表
     * */
    public List<SchoolAtt> queryList(SchoolAtt schoolAtt);

    public List<SchoolAtt> queryGradeList(@Param("gradeIds") List<Long> gradeIds,
                                          @Param("entity") SchoolAtt schoolAtt);

    public List<SchoolAtt> teacherAtt(@Param("userId") Long userId,
                                      @Param("userType") String userType,
                                      @Param("beginDate") Date beginDate,
                                      @Param("endDate") Date endDate);

    void insertAttList(@Param("list") List<SchoolAtt> list);
}
