From d3d7222cb64de2cb5390fc57fa1049d800e44786 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Wed, 30 Aug 2023 17:22:58 +0800
Subject: [PATCH] 用户新增时判断角色是否为保安员,如果是需要判断是否已存在身份证号相同的保安员,如果存在则提示
---
src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml b/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml
index 43fe24e..a79c897 100644
--- a/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml
+++ b/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml
@@ -128,7 +128,7 @@
</select>
- <!--导出保安员证信息-->
+ <!--导出保安员证信息(上岗证)-->
<select id="exportSecurityPaperList" resultType="org.springblade.modules.accreditation.vo.AccreditationRecordsVo">
SELECT
sar.*,
@@ -214,6 +214,9 @@
<if test="accreditationRecords.isAvatar==2">
and (bu.avatar is null or bu.avatar="")
</if>
+ <if test="accreditationRecords.auditStatus!=null">
+ and sar.audit_status = #{accreditationRecords.auditStatus}
+ </if>
<if test="accreditationRecords.startTime!=null and accreditationRecords.startTime!='' and accreditationRecords.startTime!='undefined'">
and sar.create_time >= #{accreditationRecords.startTime}
</if>
--
Gitblit v1.9.3