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);
|
}
|