fuliqi
2024-07-04 69b7b1ddb3ba056b8ed458bdd44cf36e4080b5bd
src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java
@@ -30,5 +30,15 @@
     */
    List<Question> getAnswerInfo(@Param("questionIds") List<Integer> questionIds);
    List<RandomQuestionDTO> selectBySubject(@Param("subjectId") Integer subjectId, @Param("types") List<Integer> types);
    Integer selectByDifAndSub(RandomQuestionDTO dto);
    /**
     * 获取随机题
     *
     * @param subjectId 课目
     * @param questionType 题型
     * @param num 数量
     * @return
     */
    List<Question> getRandomQuestion(@Param("subjectId") Integer subjectId, @Param("questionType") Integer questionType,@Param("difficult") Integer difficult, @Param("num") Integer num);
}