liujie
11 小时以前 fddf3d913d47f391f84f9e460cb76d427ef02c44
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);
}