kongzy
2024-09-14 f0f00e9ba8a755e4317e029d73b69a92ad9f9df1
exam-system/src/main/java/com/gkhy/exam/system/mapper/ExQuestionMapper.java
@@ -27,6 +27,13 @@
    Integer selectCountByBankId(@Param("companyId") Long companyId,@Param("bankId") Long bankId, @Param("questionType") Integer questionType);
    /**
     * 根据id获取题目信息
     * @param questionId
     * @return
     */
    ExQuestion selectByQuestionId(Long questionId);
    /**
     * 顺序获取指定数量的考题
     * @param bankId
     * @param questionType
@@ -53,10 +60,9 @@
    /**
     * 获取题库下面所有题目id列表
     * @param bankId
     * @param exerciseType
     * @return
     */
    List<Map> getExerciseQuestionList(@Param("bankId") Long bankId, @Param("exerciseType") Integer exerciseType,@Param("studentId") Long StundentId);
    List<Map> getExerciseQuestionList(@Param("bankId") Long bankId,@Param("studentId") Long StundentId);
    /**
     * 刷题模式下获取题目
@@ -76,36 +82,43 @@
    /**
     * 获取考卷下面所有题目id列表
     * @param paperId
     * @param completed
     * @param userId
     * @param state
     * @param studentId
     * @return
     */
    List<Map> getPaperQuestionList(@Param("paperId") Long paperId, @Param("completed") Integer completed, @Param("userId")Long userId);
    List<Map> getPaperQuestionList(@Param("paperId") Long paperId, @Param("state") Integer state, @Param("studentId")Long studentId, @Param("viewType")Integer viewType);
    /**
     * 根据id获取考卷下题目详情
     * @param questionId
     * @param completed
     * @param userId
     * @param state
     * @param studentId
     * @return
     */
    ExQuestion getPaperQuestionById(@Param("paperId")Long paperId,@Param("questionId")Long questionId, @Param("completed")Integer completed, @Param("userId")Long userId);
    ExQuestion getPaperQuestionById(@Param("paperId")Long paperId,@Param("questionId")Long questionId, @Param("state")Integer state, @Param("studentId")Long studentId);
    /**
     * 根据id列表批量获取考卷下题目详情
     * @param paperId
     * @param questionIds
     * @param completed
     * @param userId
     * @param state
     * @param studentId
     * @return
     */
    List<ExQuestion> getPaperQuestionByIds(@Param("paperId") Long paperId, @Param("questionIds")List<Long> questionIds, @Param("completed")Integer completed, @Param("userId")Long userId);
    List<ExQuestion> getPaperQuestionByIds(@Param("paperId") Long paperId, @Param("questionIds")List<Long> questionIds, @Param("state")Integer state, @Param("studentId")Long studentId);
    /**
     * 获取错题题目id
     * @param bankId
     * @param userId
     * @param studentId
     * @return
     */
    List<Long> getExerciseErrorQuestionList(@Param("bankId") Long bankId, @Param("userId") Long userId);
    List<Long> getExerciseErrorQuestionList(@Param("bankId") Long bankId, @Param("studentId") Long studentId);
    /**
     * 根据试卷id查询题目列表
     * @param paperId
     * @return
     */
    List<ExQuestion> selectQuestionByPaperId(Long paperId);
}