From 0dee81f06575d115d64adde8fc3a4ea94607f9ef Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 06 Aug 2021 11:44:17 +0800
Subject: [PATCH] 1.考试报名新增判断,同一人,同一场考试,已报名且未考试,审核通过和待审核的不能再次报名 2.考试接口修改
---
src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml | 11 +++++++++--
1 files changed, 9 insertions(+), 2 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 390e757..50b97f4 100644
--- a/src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml
+++ b/src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml
@@ -122,6 +122,9 @@
<if test="paper.examName!=null and paper.examName!=''">
and exam_name like concat('%', #{paper.examName},'%')
</if>
+ <if test="paper.examType!=null">
+ and exam_type = #{paper.examType}
+ </if>
</select>
<delete id="UnbindSubject">
@@ -145,7 +148,9 @@
on
bu.id = sa.user_id
where sa.user_id = #{userId}
- and is_exam = 1)
+ and is_exam = 1
+ and sa.apply_status = 2
+ )
union all
@@ -164,7 +169,9 @@
on
bu.id = str.user_id
where str.user_id = #{userId}
- and is_exam = 1)
+ and is_exam = 1
+ and str.cancel = 3
+ )
</select>
</mapper>
--
Gitblit v1.9.3