zjk
8 小时以前 8ea6a7dd1fcdbd4e22c564ed63a5a8023510161a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.ruoyi.user.mapper;
 
import java.util.List;
import com.ruoyi.user.domain.AccountCertificationApply;
import com.ruoyi.user.domain.vo.AccountCertificationApplyVo;
 
/**
 * 会员主体认证申请 数据层
 *
 * @author ruoyi
 */
public interface AccountCertificationApplyMapper
{
    /**
     * 查询认证申请列表
     */
    public List<AccountCertificationApplyVo> selectCertificationApplyList(AccountCertificationApplyVo apply);
 
    /**
     * 根据申请号查询(含资料快照,审核通过时用它落 account_certification)
     */
    public AccountCertificationApply selectCertificationApplyById(Long id);
 
    /**
     * 审核(只更新审核结果 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);
}