package com.crm.ucard.dao.mapper;

import com.crm.rely.backend.core.dto.wasabi.WasabiFieldDto;
import com.crm.rely.backend.core.dto.wasabi.WasabiFieldParamsDto;
import com.crm.rely.backend.core.pojo.table.ucard.CardGlobalCurrenciesFieldTable;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CardGlobalCurrenciesFieldMapper {

    void deleteAll();

    List<WasabiFieldDto> findAllByCurrencies(@Param("payoutCurrency") String payoutCurrency,
                                             @Param("transferTypeId") String transferTypeId,
                                             @Param("payoutMethodId") String payoutMethodId,
                                             @Param("fieldType") String fieldType);

    List<WasabiFieldParamsDto> getDistinctAll();

    void batchSave(List<CardGlobalCurrenciesFieldTable> list);
}
