From d5041a59d46d5c84f9606fac4bdd857784ea32c5 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 10 Aug 2021 09:31:49 +0800
Subject: [PATCH] 考试报名,取消报名接口修改

---
 src/main/java/org/springblade/modules/apply/mapper/ApplyMapper.xml |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/apply/mapper/ApplyMapper.xml b/src/main/java/org/springblade/modules/apply/mapper/ApplyMapper.xml
index 7a3bf1c..a9107e3 100644
--- a/src/main/java/org/springblade/modules/apply/mapper/ApplyMapper.xml
+++ b/src/main/java/org/springblade/modules/apply/mapper/ApplyMapper.xml
@@ -184,4 +184,27 @@
             and sa.exam_id = #{apply.examId}
         </if>
     </select>
+
+
+    <!--查询人员是否已经报名-->
+    <select id="getIsApply" resultType="java.lang.Integer">
+        select 1 from sys_apply
+        where 1=1
+        and is_exam = 1
+        and user_id = #{apply.userId}
+        and exam_id = #{apply.examId}
+        and (apply_status = 1 or apply_status = 2)
+        limit 1
+    </select>
+
+    <!--查询人员是否已经报名-->
+    <select id="getSecurityApplyInfo" resultType="org.springblade.modules.apply.entity.Apply">
+        select * from sys_apply
+        where 1=1
+        and is_exam = 1
+        and user_id = #{apply.userId}
+        and apply_status = 2
+        limit 1
+    </select>
+
 </mapper>

--
Gitblit v1.9.3