From fddf3d913d47f391f84f9e460cb76d427ef02c44 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期三, 14 十月 2026 18:06:05 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/Hugray
---
hugray-server/ruoyi-modules/ruoyi-user/src/main/java/com/ruoyi/user/mapper/AccountCertificationApplyMapper.java | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/hugray-server/ruoyi-modules/ruoyi-user/src/main/java/com/ruoyi/user/mapper/AccountCertificationApplyMapper.java b/hugray-server/ruoyi-modules/ruoyi-user/src/main/java/com/ruoyi/user/mapper/AccountCertificationApplyMapper.java
index 12411ef..d2ad5e7 100644
--- a/hugray-server/ruoyi-modules/ruoyi-user/src/main/java/com/ruoyi/user/mapper/AccountCertificationApplyMapper.java
+++ b/hugray-server/ruoyi-modules/ruoyi-user/src/main/java/com/ruoyi/user/mapper/AccountCertificationApplyMapper.java
@@ -25,4 +25,37 @@
* 审核(只更新审核结果 4 列,条件带 audit_status='0' 作并发闸门)
*/
public int auditCertificationApply(AccountCertificationApply apply);
+
+ /**
+ * 新增认证申请(C端会员提交,回填自增主键作为申请号)
+ */
+ public int insertCertificationApply(AccountCertificationApply apply);
+
+ /**
+ * 统计该会员待审核的「个人」认证申请数(>0 即视为重复提交,用于提交前防重)
+ *
+ * 限 subject_type='1':个人与企业认证各自独立防重,互不干扰。
+ */
+ public int countPendingPersonalApplyByUserId(Long userId);
+
+ /**
+ * 统计该会员待审核的「企业/个体」认证申请数(>0 即视为重复提交,用于提交前防重)
+ *
+ * 限 subject_type in ('2','3')。
+ */
+ public int countPendingCompanyApplyByUserId(Long userId);
+
+ /**
+ * 查询该会员最近一次「个人」认证申请(C端进入认证页时回填资料与状态;无申请返回 null)
+ *
+ * 限 subject_type='1'。
+ */
+ public AccountCertificationApply selectLatestPersonalApplyByUserId(Long userId);
+
+ /**
+ * 查询该会员最近一次「企业/个体」认证申请(C端进入企业认证向导页时回填;无申请返回 null)
+ *
+ * 限 subject_type in ('2','3')。
+ */
+ public AccountCertificationApply selectLatestCompanyApplyByUserId(Long userId);
}
--
Gitblit v1.7.1