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

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yonge.cooleshow.biz.dal.dto.search.StudentMusicSheetSearch;
import org.apache.ibatis.annotations.Param;
import com.yonge.cooleshow.biz.dal.entity.MusicSheetPracticeRecord;
import com.yonge.cooleshow.biz.dal.vo.MusicSheetPracticeRecordVo;
import com.yonge.cooleshow.biz.dal.dto.search.MusicSheetPracticeRecordSearch;


public interface MusicSheetPracticeRecordDao extends BaseMapper<MusicSheetPracticeRecord> {
	/**
	 * 查询详情
	 *
	 * @author liweifan
	 * @date 2022-04-02 10:05:39
	 * @return: com.yonge.cooleshow.biz.dal.vo.MusicSheetPracticeRecordVo
	 */
	MusicSheetPracticeRecordVo detail(@Param("id") Long id);

	/**
	 * 分页查询
	 *
	 * @author liweifan
	 * @date 2022-04-02 10:05:39
	 * @return: com.yonge.cooleshow.biz.dal.vo.MusicSheetPracticeRecordVo
	 */
	List<MusicSheetPracticeRecordVo> selectPage(@Param("page") IPage page, @Param("param") MusicSheetPracticeRecordSearch musicSheetPracticeRecord);

	/**
	 * 查询学生最近练习的曲目id
	 *
	 * @param query 查询条件
	 * @return 曲目id 集合
	 */
	List<Long> selectPracticeMusicIdPage(@Param("iPage") IPage<Long> iPage, @Param("param") StudentMusicSheetSearch query);
}