From 048ac3dc5e9959821bf2d9a4f0435d7858556bdc Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 17 Dec 2021 16:44:36 +0800
Subject: [PATCH] 1. 保安证打印修改 2. 保安证查询修改 3. 考试成绩查询修改

---
 src/main/java/org/springblade/modules/exam/mapper/ExamScoreMapper.xml |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 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 9645a24..ecca9d1 100644
--- a/src/main/java/org/springblade/modules/exam/mapper/ExamScoreMapper.xml
+++ b/src/main/java/org/springblade/modules/exam/mapper/ExamScoreMapper.xml
@@ -64,7 +64,7 @@
     </select>
 
 
-    <!--考试成绩分页信息-模拟考试-->
+    <!--考试成绩分页信息-培训考试-->
     <select id="selectTrainExamScorePage" resultType="org.springblade.modules.exam.vo.ExamScoreVO">
         SELECT
             es.id,es.theory_grade theoryGrade,ifnull(learn_grade,-1) learnGrade,es.user_id userId,es.exam_id examId,
@@ -72,7 +72,8 @@
             ke.exam_name examName,
             str.is_exam isExam,
             bu.real_name securityName,company,bu.account,bu.sex,bu.paper_time paperTime,bu.securitynumber securityNumber,bu.avatar,
-            bd.dept_name companyName from
+            bd.dept_name companyName,bu.user_type isPaper
+        from
             exam_score es
         left join
         ksxt_exam ke
@@ -119,6 +120,15 @@
         </if>
         <if test="examScore.examType!=null and  examScore.examType!=''">
             and ke.exam_type = #{examScore.examType}
+        </if>
+        <if test="examScore.examType!=null and  examScore.examType!=''">
+            and ke.exam_type = #{examScore.examType}
+        </if>
+        <if test="examScore.isPaper==6">
+            and bu.user_type = #{examScore.isPaper}
+        </if>
+        <if test="examScore.isPaper==7">
+            and (bu.user_type = #{examScore.isPaper} or bu.user_type is null)
         </if>
         <if test="examScore.isAvatar==1">
             and bu.avatar is not null and bu.avatar!=""
@@ -368,6 +378,12 @@
         <if test="examScore.securityName!=null and  examScore.securityName!=''">
             and bu.real_name like concat('%', #{examScore.securityName},'%')
         </if>
+        <if test="examScore.isPaper==6">
+            and bu.user_type = #{examScore.isPaper}
+        </if>
+        <if test="examScore.isPaper==7">
+            and (bu.user_type = #{examScore.isPaper} or bu.user_type is null)
+        </if>
         <if test="examScore.account!=null and  examScore.account!=''">
             and bu.account like concat('%', #{examScore.account},'%')
         </if>

--
Gitblit v1.9.3