From 1ea1721109c298ad528f26f079095cb11d6420c0 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 02 Sep 2021 16:24:21 +0800
Subject: [PATCH] 1.考试查询接口修改,计算每场考试报名人数 2.个人头像批量上传接口修改,删除生成在本地的压缩包和文件
---
src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml | 34 +++++++++++++++++++++++++++++++++-
1 files changed, 33 insertions(+), 1 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 0cfba74..a1b7d06 100644
--- a/src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml
+++ b/src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml
@@ -85,7 +85,7 @@
SELECT * FROM ( SELECT * FROM exam_subject_choices WHERE choices_type = 3 ORDER BY RAND( ) LIMIT 5 ) d
</select>
- <select id="selectExamPaperPage" resultType="org.springblade.modules.exam.vo.ExamPaperVO">
+ <select id="selectExamPaperPages" resultType="org.springblade.modules.exam.vo.ExamPaperVO">
SELECT
*
FROM
@@ -96,6 +96,22 @@
ksxt_exam sj ) as s
WHERE
show = 1
+ </select>
+
+
+ <select id="selectExamPaperPage" resultType="org.springblade.modules.exam.vo.ExamPaperVO">
+ SELECT
+ *
+ FROM
+ ksxt_exam
+ where
+ 1=1
+ <if test="paper.examType!=null and paper.examType!=''">
+ and exam_type = #{paper.examType}
+ </if>
+ <if test="paper.examName!=null and paper.examName!=''">
+ and exam_name = #{paper.examName}
+ </if>
</select>
<select id="PagerSubject" resultMap="PagerSubjectAnswer">
@@ -215,4 +231,20 @@
where exam_name like concat('%', #{examName},'%')
</select>
+ <!--查询当前考试的报名人员数量-->
+ <select id="getApplyNumber" resultType="java.lang.Integer">
+ select count(*) from sys_apply
+ where
+ exam_id = #{examPaper.id}
+ and apply_status = 2
+ </select>
+
+ <!--查询当前考试的报名人员数量,模拟考试-->
+ <select id="getTrainNumber" resultType="java.lang.Integer">
+ select count(*) from sys_training_registration
+ where
+ train_exam_id = #{examPaper.id}
+ and cancel = 1
+ </select>
+
</mapper>
--
Gitblit v1.9.3