From e8a2c8eeff68395f7d77245db361c6a4846b43bf Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 16 Sep 2021 18:08:48 +0800
Subject: [PATCH] 准考证信息查询修改,新增考试号,地址
---
src/main/java/org/springblade/modules/exam/mapper/ExamScoreMapper.xml | 26 ++++++++++++++++++++++----
1 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/springblade/modules/exam/mapper/ExamScoreMapper.xml b/src/main/java/org/springblade/modules/exam/mapper/ExamScoreMapper.xml
index b9a6a7e..9a84723 100644
--- a/src/main/java/org/springblade/modules/exam/mapper/ExamScoreMapper.xml
+++ b/src/main/java/org/springblade/modules/exam/mapper/ExamScoreMapper.xml
@@ -155,7 +155,7 @@
<!-- exam_score exam-->
<!-- LEFT JOIN blade_user user ON exam.user_id = user.id-->
<!-- WHERE 1 = 1-->
-<!-- <if test="jurisdiction!=null and jurisdiction=='' and jurisdiction!='1123598813738675201'">-->
+<!-- <if test="jurisdiction!=null and jurisdiction=='' and jurisdiction!='1372091709474910209'">-->
<!-- AND user.jurisdiction = #{jurisdiction}-->
<!-- </if>-->
<!-- <if test="deptid!=null and deptid==''">-->
@@ -171,7 +171,7 @@
<!-- exam_score exam-->
<!-- LEFT JOIN blade_user user ON exam.user_id = user.id-->
<!-- WHERE 1 = 1-->
-<!-- <if test="jurisdiction!=null and jurisdiction=='' and jurisdiction!='1123598813738675201'">-->
+<!-- <if test="jurisdiction!=null and jurisdiction=='' and jurisdiction!='1372091709474910209'">-->
<!-- AND user.jurisdiction = #{jurisdiction}-->
<!-- </if>-->
<!-- <if test="deptid!=null and deptid==''">-->
@@ -189,7 +189,7 @@
exam_score exam
LEFT JOIN blade_user user ON exam.user_id = user.id
WHERE 1 = 1 AND theory_grade is not null
- <if test="jurisdiction!=null and jurisdiction=='' and jurisdiction!='1123598813738675201'">
+ <if test="jurisdiction!=null and jurisdiction!='' and jurisdiction!='1372091709474910209'">
AND user.jurisdiction = #{jurisdiction}
</if>
<if test="deptid!=null and deptid!=''">
@@ -207,7 +207,7 @@
exam_score exam
LEFT JOIN blade_user user ON exam.user_id = user.id
WHERE 1 = 1 AND learn_grade is not null
- <if test="jurisdiction!=null and jurisdiction=='' and jurisdiction!='1123598813738675201'">
+ <if test="jurisdiction!=null and jurisdiction!='' and jurisdiction!='1372091709474910209'">
AND user.jurisdiction = #{jurisdiction}
</if>
<if test="deptid!=null and deptid!=''">
@@ -217,6 +217,24 @@
exam.learn_grade
</select>
+ <select id="scorePage" resultType="org.springblade.modules.exam.vo.ExamScoreVO">
+ SELECT
+ exam.*,
+ user.jurisdiction,
+ user.dept_id
+ FROM
+ exam_score exam
+ LEFT JOIN blade_user user ON exam.user_id = user.id
+ WHERE
+ 1 = 1
+ <if test="jurisdiction!=null and jurisdiction!='' and jurisdiction!='1372091709474910209'">
+ AND user.jurisdiction = #{jurisdiction}
+ </if>
+ <if test="deptid!=null and deptid!=''">
+ AND user.dept_id = #{deptid}
+ </if>
+ </select>
+
<!--根据用户身份证号查询考试成绩-->
<select id="getExamScoreInfoByIdCardNo" resultType="org.springblade.modules.exam.entity.ExamScore">
select
--
Gitblit v1.9.3