From 9f0b76de38b1d73c9827ec378130603d2a21aea2 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 08 七月 2024 18:07:36 +0800
Subject: [PATCH] 登录递归查询子级部门
---
src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java | 22 ++++++++++++++++++++++
1 files changed, 22 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..e7bde69 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,25 @@
Integer removeSubjectId(Integer subjectId);
List<QuestionSubject> getSubject(Integer id);
+
+ /** 缁熻璇剧洰鐨勯鐩暟 */
+ Integer countQuestionNum(@Param("subjects") List<Integer> subjects, @Param("questionType") Integer questionType);
+
+ /** 闅忔満棰樼洰 */
+ 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);
+
+ /** 鏍规嵁璇剧洰ID鏌ヨ棰樼洰璇︽儏 */
+ List<QuestionVO> bySubjectId(@Param("subjectId") Integer subjectId);
+
+ /** 鏍规嵁璇剧洰鍜岄鍨嬫煡鎵鹃鐩暟鎹� */
+ List<QuestionVO> bySubjectIdAndQuestionType(Integer subjectId, Integer dataBaseValueByValue);
}
--
Gitblit v1.8.0