package com.hzs.member.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.member.account.CuMemberBank;
import com.hzs.member.handlebusiness.vo.BusinessMemberVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员信息-银行卡信息 Mapper 接口
 *
 * @author hzs
 * @since 2022-08-31
 */
public interface CuMemberBankMapper extends BaseMapper<CuMemberBank> {

    /**
     * 根据会员批量重置银行卡
     *
     * @param businessMemberList 办理业务会员信息
     * @param updatePkMember     变更人
     * @return Integer
     */
    Integer batchUpdateBankBypkMembers(@Param("businessMemberList") List<BusinessMemberVO> businessMemberList, @Param("updatePkMember") Long updatePkMember);

    /**
     * 查询绑定的银行卡
     *
     * @param pkMember  会员ID
     * @param pkCountry 国家ID
     * @return List<CuMemberBank>
     */
    List<CuMemberBank> selectBankCardByPkMember(@Param("pkMember") Long pkMember, @Param("pkCountry") Integer pkCountry);

}
