From fe29db7a08e9da70ca3c78db27a11e48fa5f6f43 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 15 五月 2024 22:24:47 +0800
Subject: [PATCH] springboot静态文件配置。删除dist

---
 src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java b/src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java
index 8b9e3bd..3d4a8a2 100644
--- a/src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java
+++ b/src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java
@@ -1,6 +1,7 @@
 package com.mindskip.xzs.repository;
 
 import com.mindskip.xzs.domain.QuestionSubject;
+import com.mindskip.xzs.domain.vo.QuestionVO;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 
@@ -29,4 +30,19 @@
     Integer removeSubjectId(Integer subjectId);
 
     List<QuestionSubject> getSubject(Integer id);
+
+    /** 缁熻璇剧洰鐨勯鐩暟 */
+    Integer countQuestionNum(@Param("subjects") List<Integer> subjects);
+
+    /** 闅忔満棰樼洰 */
+    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