xiangpei
2024-06-28 abd1516fa39da87f70d4f69dc4ec35f8f81946f1
src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java
@@ -31,4 +31,14 @@
    List<Question> getAnswerInfo(@Param("questionIds") List<Integer> questionIds);
    List<RandomQuestionDTO> selectBySubject(@Param("subjectId") Integer subjectId, @Param("types") List<Integer> types);
    /**
     * 获取随机题
     *
     * @param subjectId 课目
     * @param questionType 题型
     * @param num 数量
     * @return
     */
    List<Question> getRandomQuestion(@Param("subjectId") Integer subjectId, @Param("questionType") Integer questionType, @Param("num") Integer num);
}