package com.ssj.dao.kmt.kmt.dao;

import com.ssj.service.kmt.dto.OriginalQuestionDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface KmtCorrectHomeworkQueryDao {

    /**
     * 查询学生信息
     *
     * @param homeworkPictureId
     */
    Map<String, Object> findHomeworkInfoByHomeworkPictureId(String homeworkPictureId);

    /**
     * 分页查询错题列表
     *
     * @param searchParams
     * @param pageable
     * @return
     */
    Page<Map<String, Object>> findWrongQuestionByPage(Map<String, Object> searchParams, Pageable pageable);

    /**
     * 分页查询错题列表(新)
     *
     * @param searchParams
     * @param pageable
     * @return
     */
    Page<Map<String, Object>> findWrongQuestionNewByPage(Map<String, Object> searchParams, Pageable pageable);

    /**
     * 根据作业图片id查询原题
     * @return
     */
    List<Map<String, Object>> findQuestionList(List<String> homeworkPictureIdList);

    /**
     * 根据图片id查询对应的题库原题(包括所属大题及大题下所有小题)
     * @return
     */
    List<OriginalQuestionDTO> findQuestionContainParentAndBrotherList(List<String> homeworkPictureIdList);

    /**
     * 查询出指定小题对应的整个大题
     * @param questionId 小题id
     * @return
     */
    List<Map<String, Object>> findFullBigQuestion(String questionId);
}
