package com.hzs.system.config.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.system.config.BdWithdrawal;
import com.hzs.common.domain.system.config.ext.BdWithdrawalAutoExt;
import com.hzs.common.domain.system.config.ext.BdWithdrawalExt;

import java.util.List;

/**
 * <p>
 * 提现设置主表 服务类
 * </p>
 *
 * @author zhangjing
 * @since 2022-08-29
 */
public interface IBdWithdrawalService extends IService<BdWithdrawal> {


    /**
     * @description: 根据国家查询提现配置明细列表
     * @author: zhang jing
     * @date: 2022/9/27 15:08
     * @param: [pkCountry]
     * @return: java.util.List<com.hzs.common.domain.system.config.BdWithdrawal>
     **/
    BdWithdrawal queryWithdrawal(Integer pkCountry);


    /**
     * @description: 新增提现
     * @author: zhang jing
     * @date: 2022/10/31 15:11
     * @param: [withdrawalExt]
     * @return: boolean
     **/
    boolean saveWithdrawal(BdWithdrawalExt withdrawalExt);

    /**
     * @description: 修改提现
     * @author: zhang jing
     * @date: 2022/10/31 15:11
     * @param: [withdrawalExt]
     * @return: boolean
     **/
    boolean updateWithdrawal(BdWithdrawalExt withdrawalExt);

    /**
     * @description: 查询自动提现明细
     * @author: zhang jing
     * @date: 2022/10/31 15:12
     * @param: [withdrawalAutoExt]
     * @return: java.util.List<com.hzs.common.domain.system.config.ext.BdWithdrawalAutoExt>
     **/
    List<BdWithdrawalAutoExt> getWithdrawalAutoList(BdWithdrawalAutoExt withdrawalAutoExt);

    /**
     * @description: 查询配置自动提现的配置
     * @author: zhang jing
     * @date: 2022/11/1 19:41
     * @param:
     * @return:
     **/
    List<BdWithdrawal> queryWithdrawalByIsAuto();

    /**
     * @description: 查询会员提价表是否有数据
     * @author: zhang jing
     * @date: 2023/3/16 11:06
     * @param: [withdrawalAutoExt]
     * @return: java.lang.Integer
     **/
    Integer checkWithdraw (BdWithdrawalAutoExt withdrawalAutoExt);

}
