From 8f2b25bdc4ec1c803704d8ca37690462bb1106ea Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 16 五月 2024 16:49:56 +0800 Subject: [PATCH] 学习文件管理端 --- src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java b/src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java index bdb4835..3d4a8a2 100644 --- a/src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java +++ b/src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java @@ -35,5 +35,14 @@ Integer countQuestionNum(@Param("subjects") List<Integer> subjects); /** 闅忔満棰樼洰 */ - List<QuestionVO> getRandomQuestionId(@Param("subjectIds") List<Integer> subjectIds, @Param("questionNum") Integer questionNum); + List<QuestionVO> getRandomQuestionId(@Param("subjectIds") List<Integer> subjectIds, @Param("questionType") Integer questionType, @Param("questionNum") Integer questionNum); + + /** 鏌ヨ棰樼洰ID锛屾牴鎹鐩甶ds */ + List<Integer> questionsBySubjectIds(@Param("subjectIds") List<Integer> subjectIds); + + /** 鏌ヨ棰樼洰ID鏍规嵁璇剧洰id */ + List<Integer> questionsBySubjectId(Integer subjectId); + + /** 鏍规嵁璇剧洰鍜岄鍨嬫煡璇㈤鐩甀D */ + List<Integer> questionsBySubjectIdAndQuestionType(@Param("subjectId") Integer subjectId, @Param("questionType") Integer questionType); } -- Gitblit v1.8.0