package jnpf.cultivate.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import jnpf.entity.cultivate.TeachingStudent;
import jnpf.model.cultivate.dto.teaching.QueryTeachingRecordDto;
import jnpf.model.cultivate.vo.teaching.SkillKeyVo;
import jnpf.model.cultivate.vo.teaching.TeachingDataListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeachingStudentMapper extends BaseMapper<TeachingStudent> {

    /**
     * 我的带教-学员信息统计
     * @param queryTeachingRecordDto 带教记录id集合
     * @return List<TeachingDataListVo>
     */
    List<TeachingDataListVo> queryTeachingDataList(@Param("queryTeachingRecordDto")QueryTeachingRecordDto queryTeachingRecordDto);

    /**
     * 查询技能点，用于分组统计
     * @param queryTeachingRecordDto
     * @return List<SkillKeyVo>
     */
    List<SkillKeyVo> querySkillKeyList(@Param("queryTeachingRecordDto")QueryTeachingRecordDto queryTeachingRecordDto);

    /**
     * 根据用户名查询带教记录ids
     * @param keyword 用户名
     * @return java.util.List<java.lang.String>
     */
    List<String> getRecordIdByKeyword(String keyword);
}