package com.hzs.system.config.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.system.config.BdAgreementRenewalWhite;
import com.hzs.common.domain.system.config.ext.BdAgreementRenewalWhiteExt;
import com.hzs.system.config.vo.BdAgreementRenewalWhiteVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 协议续约白名单 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2024-01-12
 */
public interface BdAgreementRenewalWhiteMapper extends BaseMapper<BdAgreementRenewalWhite> {

    /**
     * 查询协议续约白名单列表
     *
     * @param agreementRenewalWhiteVO 协议续约白名单
     * @return List<BdAgreementRenewalWhiteVO>
     */
    List<BdAgreementRenewalWhiteExt> selectWhiteList(BdAgreementRenewalWhiteVO agreementRenewalWhiteVO);

    /**
     * 查询是否包含会员令牌
     *
     * @param memberPkIds
     * @return Integer
     */
    Integer isIncludeMemberId(@Param("memberPkIds") List<Long> memberPkIds, @Param("pkCountry") Integer pkCountry);

    /**
     * 查询休止期的会员是否使用钱包
     *
     * @param pkMember 会员ID
     * @return Integer
     */
    Integer selectAgreementWhiteByPkMember(@Param("pkMember") Long pkMember);

}
