From f5379a7100a20f538092eb839b2f4c9f6d3a1b45 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 04 七月 2024 17:06:10 +0800
Subject: [PATCH] 上课记录Bug修复

---
 src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java b/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java
index 3042302..69b35e1 100644
--- a/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java
+++ b/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);
 }

--
Gitblit v1.8.0