package com.ssj.mapper.problem;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ssj.bean.sys.problem.dto.ProblemPictureListDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: chchen
 * @Description
 * @Date Create in 16:41 2019/10/24
 * @Modified By
 */
@Mapper
public interface ProblemMapper {

    /**
     * 查询老师近三天的难题列表
     * @param classId
     * @return
     */
    List<ProblemPictureListDto> findProblemListByTeacherId (@Param("classId") String classId,
                                                            @Param("subjects") List<String> subjects,
                                                            @Param(("libId")) String libId,
                                                            @Param("beginTime") String beginTime, Page page);

    /**
     * 查询学生某一学科的难题列表
     * @param vipId
     * @param subjects
     * @param page
     * @return
     */
    List<ProblemPictureListDto> findProblemListByVipIdAndSubject (@Param("vipId") String vipId, @Param("subjects") List<String> subjects, Page page);

    /**
     * 查询学生某一学科的所有难题列表
     * @param vipId
     * @param subject
     * @param page
     * @return
     */
    List<ProblemPictureListDto> findAllProblemListByVipIdAndSubject (@Param("vipId") String vipId, @Param("subject") String subject, Page page);

    /**
     * 根据学生id和科目查询难题解答老师id
     * @param vipId 学生id
     * @param subject 科目
     * @return 老师列表
     */
    List<String> findOrgTeacherIdByVipIdAndSubject(@Param("vipId") String vipId, @Param("subject") String subject,@Param("libId") String libId);
}
