From 045b55722b25ccc77d88671c5d6df309edb8a66d Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Tue, 22 Feb 2022 16:00:34 +0800
Subject: [PATCH] 1. 保安员新增异步推送数据至群访用户表 2. 会员标记接口新增,会员标记成功,则创建会员记录和会员题库记录(包含120道题目) 3. web 端考试开始,查询题目判断用户是否为会员,如果为会员则从会员题库获取当前人员的考试题目(从120道题中随机抽取60道)

---
 src/main/java/org/springblade/modules/exam/mapper/ScoreAuditRecordsMapper.xml |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/main/java/org/springblade/modules/exam/mapper/ScoreAuditRecordsMapper.xml b/src/main/java/org/springblade/modules/exam/mapper/ScoreAuditRecordsMapper.xml
index e350d6e..8a9d2e1 100644
--- a/src/main/java/org/springblade/modules/exam/mapper/ScoreAuditRecordsMapper.xml
+++ b/src/main/java/org/springblade/modules/exam/mapper/ScoreAuditRecordsMapper.xml
@@ -11,7 +11,7 @@
             bu.sex,bu.cardid idCardNo,
             ifnull(DATE_FORMAT(NOW(), '%Y') - SUBSTRING( bu.cardid,7,4),0) age,
             bu1.real_name applyRealName,
-            ke.exam_name examName,
+            ke.exam_name examName,date_format(ke.start_time,'%Y-%m-%d') examTime,
             bt1.dept_name applyUnitName
         FROM
             sys_score_audit_records ssar
@@ -69,6 +69,9 @@
         <if test="scoreAuditRecords.examName!=null and  scoreAuditRecords.examName!=''">
             and ke.exam_name like concat('%', #{scoreAuditRecords.examName},'%')
         </if>
+        <if test="scoreAuditRecords.examTime!=null and  scoreAuditRecords.examTime!=''">
+            and date_format(ke.start_time,'%Y-%m-%d') = #{scoreAuditRecords.examTime}
+        </if>
         <if test="scoreAuditRecords.trainUnitId!=null and  scoreAuditRecords.trainUnitId!=''">
             and bt1.id = #{scoreAuditRecords.trainUnitId}
         </if>

--
Gitblit v1.9.3