package com.hzs.system.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.system.sys.SysApprovalBusinessMember;
import com.hzs.system.sys.dto.ApprovalMemberNumDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 审批业务表涉及用户 Mapper 接口
 *
 * @author hzs
 * @since 2023-03-01s
 */
public interface SysApprovalBusinessMemberMapper extends BaseMapper<SysApprovalBusinessMember> {

    /**
     * 批量插入
     *
     * @param pkApprovalBusiness
     * @param pkMemberList
     * @return
     */
    int insertBatch(@Param("pkApprovalBusiness") Long pkApprovalBusiness, @Param("pkMemberList") Set<Long> pkMemberList);

    /**
     * 查询用户审核中业务数量
     *
     * @param pkMemberList
     * @param pkCountry
     * @return
     */
    List<ApprovalMemberNumDTO> queryProcessingApproval(@Param("pkMemberList") List<Long> pkMemberList, @Param("pkCountry") Integer pkCountry);

}
