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.StudentSearch;
import com.yonge.cooleshow.biz.dal.entity.Student;
import com.yonge.cooleshow.biz.dal.vo.StudentVo;
import org.apache.ibatis.annotations.Param;

public interface StudentDao extends BaseMapper<Student> {
    /***
     * 查询详情
     * @author liweifan
     * @param: userId
     * @updateTime 2022/3/24 18:14
     * @return: com.yonge.cooleshow.biz.dal.vo.StudentVo
     */
    StudentVo detail(@Param("userId") Long userId);

    /**
     * 自定义分页
     */
    List<StudentVo> selectPage(@Param("page") IPage page, @Param("param") StudentSearch studentSearch);
	/***
	 * 设置学员声部
	 * @author liweifan
	 * @param: id
	 * @param: subjectIds
	 * @updateTime 2022/4/7 10:12
	 * @return: java.lang.Integer
	 */
    Integer setSubject(@Param("id") Long id, @Param("subjectIds") String subjectIds);
}