From 1d51512c49e89a84c4042a9e3fa48fc4bf438056 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 14 Dec 2021 10:01:40 +0800
Subject: [PATCH] 1. 新增保安员统计查询,业务情况统计查询 2. 新增保安员统计导出,业务情况统计导出
---
src/main/java/org/springblade/modules/exam/mapper/ScoreAuditRecordsMapper.xml | 6 +++++-
1 files changed, 5 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 9e88063..e350d6e 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,8 @@
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,
+ bt1.dept_name applyUnitName
FROM
sys_score_audit_records ssar
left join
@@ -71,6 +72,9 @@
<if test="scoreAuditRecords.trainUnitId!=null and scoreAuditRecords.trainUnitId!=''">
and bt1.id = #{scoreAuditRecords.trainUnitId}
</if>
+ <if test="scoreAuditRecords.applyUnitName!=null and scoreAuditRecords.applyUnitName!=''">
+ and bt1.dept_name like concat('%',#{scoreAuditRecords.applyUnitName},'%')
+ </if>
<if test="scoreAuditRecords.status!=null">
and ssar.status = #{scoreAuditRecords.status}
</if>
--
Gitblit v1.9.3