package com.hzs.system.config.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.system.config.BdSpecialCurrency;
import com.hzs.common.domain.system.config.BdSpecialCurrencyDetail;
import com.hzs.common.domain.system.config.ext.BdSpecialCurrencyDetailExt;
import com.hzs.common.domain.system.config.ext.BdSpecialCurrencyExt;
import com.hzs.system.config.param.SpecialCurrencyParam;
import org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 * 特殊消费配置 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2023-07-18
 */
public interface BdSpecialCurrencyMapper extends BaseMapper<BdSpecialCurrency> {

    /*
     * @description: 查询特殊配置明细
     * @author: sui q
     * @date: 2023/7/19 11:27
     * @param: null null
     **/
    List<BdSpecialCurrencyExt> querySpecialCurrencyList(SpecialCurrencyParam specialCurrencyParam);

    /**
     * 批量查询重销的扣除比例
     *
     * @param pkCurrencySet
     * @param account
     * @return
     */
    List<BdSpecialCurrencyDetailExt> queryAreaCurrencyBySpecialArea(@Param("pkCurrencySet") Set<Integer> pkCurrencySet, @Param("account") Integer account);

}
