package com.yonge.cooleshow.biz.dal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yonge.cooleshow.biz.dal.enums.CourseScheduleEnum;
import com.yonge.cooleshow.biz.dal.vo.StudentAttendanceVo;
import com.yonge.cooleshow.biz.dal.dto.search.StudentAttendanceSearch;
import com.yonge.cooleshow.biz.dal.entity.StudentAttendance;

/**
 * 学生考勤表 服务类
 * @author liweifan
 * @date 2022-03-30
 */
public interface StudentAttendanceService extends IService<StudentAttendance>  {

	/**
     * 查询详情
     * @author liweifan
 	 * @date 2022-03-30
     */
	StudentAttendanceVo detail(Long id);

    /**
     * 分页查询
     * @author liweifan
 	 * @date 2022-03-30
     */
    IPage<StudentAttendanceVo> selectPage(IPage<StudentAttendanceVo> page, StudentAttendanceSearch query);

	/**
	 * 获取学生考勤信息
	 *
	 * @param courseType 课程类型 PRACTICE：陪练课、LIVE：直播课
	 * @param courseScheduleId 课程id
	 * @return 考勤对象
	 */
    StudentAttendance getByCourseTypeAndScheduleId(CourseScheduleEnum courseType, Long courseScheduleId);
}