From abe4f3885d4d5742c3e91f65186c85e1e7559bd2 Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Wed, 23 Feb 2022 17:45:41 +0800
Subject: [PATCH] 查询会员信息接口新增,模拟考试开始处理接口新增,模拟考试暂停处理接口新增, 是否有待完成的模拟考试接口新增,模拟考试暂停后再次进入考试信息查询接口新增
---
src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml b/src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml
index ca809af..4b60a6d 100644
--- a/src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml
+++ b/src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml
@@ -534,4 +534,23 @@
) aa,(select @i:=0) bb
</select>
+ <select id="queryRandomSubjectList" resultType="org.springblade.modules.exam.vo.ExamSubjectChoicesVO">
+ select
+ id,
+ category_id categoryId,
+ subject_name subjectName,
+ choices_type choicesType,
+ score,
+ analysis,
+ tktype
+ from (
+ select * from exam_subject_choices
+ where id in
+ <foreach collection="list" index="index" item="item" open="(" separator="," close=")">
+ #{item}
+ </foreach>
+ ) a ORDER BY RAND() LIMIT #{number}
+ </select>
+
+
</mapper>
--
Gitblit v1.9.3