From 526745df87b382366960df1c765b83a84d493019 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 03 七月 2024 16:23:23 +0800 Subject: [PATCH] 随机试卷增加维度 --- src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java b/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java index a63c165..69b35e1 100644 --- a/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java +++ b/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java @@ -3,6 +3,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ycl.jxkg.domain.other.KeyValue; import com.ycl.jxkg.domain.entity.Question; +import com.ycl.jxkg.domain.question.RandomQuestionDTO; import com.ycl.jxkg.domain.vo.admin.question.QuestionPageRequestVO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @@ -28,4 +29,16 @@ * @return */ List<Question> getAnswerInfo(@Param("questionIds") List<Integer> questionIds); + + 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); } -- Gitblit v1.8.0