From 5bdb7fbe5290dd64342de92f12ffb45c3f5abe28 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 09 Mar 2022 15:27:05 +0800
Subject: [PATCH] 导入测试接口修改(admin用),自动生成保安证编号并存档

---
 src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.java b/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.java
index 789d5df..92a3413 100644
--- a/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.java
+++ b/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.java
@@ -53,4 +53,18 @@
 	 * 导出证书制证信息(包含照片)
 	 */
 	List<AccreditationRecordsVo> exportSecurityBookPapers(@Param("accreditationRecords") AccreditationRecordsVo accreditationRecords);
+
+	/**
+	 * 根据用户 id 查询上岗证申请记录
+	 * @param id 用户id
+	 * @return
+	 */
+	int getAccreditationRecordsByUserIdCount(@Param("userId") String id);
+
+	/**
+	 * 根据用户 id 查询当前人员是否有待审核和审核通过的记录数
+	 * @param id 用户id
+	 * @return
+	 */
+	int getAccreditationRecordsByUserIdAuditCount(@Param("userId") String id,@Param("type") Integer type);
 }

--
Gitblit v1.9.3