From 8853292babb2ad94de4a3207966f1e83b767cd2d Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Sun, 17 Sep 2023 16:38:34 +0800
Subject: [PATCH] 新增流程节点进程查询接口
---
src/main/java/org/springblade/modules/exam/mapper/ScoreAuditRecordsMapper.xml | 28 +++++++++++++++++++++++++++-
1 files changed, 27 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 e83fef9..2fd7466 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,date_format(ke.start_time,'%Y-%m-%d') examTime,
+ bt1.dept_name applyUnitName
FROM
sys_score_audit_records ssar
left join
@@ -27,6 +28,10 @@
on
ssar.create_user = bu1.id
left join
+ blade_dept bt1
+ on
+ bu1.dept_id = bt1.id
+ left join
exam_score es
on
es.id = ssar.exam_score_id
@@ -34,10 +39,22 @@
ksxt_exam ke
on
ke.id = es.exam_id
+ left join
+ sys_information si
+ on
+ si.departmentid = bt.id
+ left join
+ sys_jurisdiction sj
+ on
+ sj.id = si.jurisdiction
WHERE
1=1
and bu.status = 1
and bu.is_deleted = 0
+ and es.is_deleted = 0
+ <if test="scoreAuditRecords.jurisdiction!=null and scoreAuditRecords.jurisdiction!='' and scoreAuditRecords.jurisdiction!='1372091709474910209'">
+ and (sj.id=#{scoreAuditRecords.jurisdiction} or sj.parent_id=#{scoreAuditRecords.jurisdiction})
+ </if>
<if test="scoreAuditRecords.deptName!=null and scoreAuditRecords.deptName!=''">
and bt.dept_name like concat('%', #{scoreAuditRecords.deptName},'%')
</if>
@@ -53,6 +70,15 @@
<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>
+ <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