From 1bf4f952b35ee870082e0ec0b1026f47121fe2fe Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 04 Jan 2022 15:42:01 +0800
Subject: [PATCH] 按年龄段查询保安员分布情况

---
 src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java b/src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java
index c763ebb..7afae75 100644
--- a/src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java
+++ b/src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java
@@ -130,6 +130,13 @@
 			List<ExportSecurityPaperExcel> list = new ArrayList<>();
 			//遍历
 			accreditationRecordsVos.forEach(accreditationRecordsVo -> {
+				//导出即修改为已制证状态
+				AccreditationRecords accreditationRecords1 = new AccreditationRecords();
+				accreditationRecords1.setId(accreditationRecordsVo.getId());
+				accreditationRecords1.setStatus(2);
+				//修改
+				this.updateById(accreditationRecords1);
+
 				ExportSecurityPaperExcel excel = new ExportSecurityPaperExcel();
 				//数据转换封装
 				excel.setRealName(accreditationRecordsVo.getRealName());

--
Gitblit v1.9.3