package com.crm.ucard.dao.mapper;


import com.crm.rely.backend.core.dto.ucard.GlobalOrderDto;
import com.crm.rely.backend.core.dto.ucard.GlobalOrderSumDto;
import com.crm.rely.backend.core.entity.ucard.GlobalOrderPageEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Repository
public interface CardGlobalOrderMapper {

    Integer countList(GlobalOrderPageEntity entity);

    List<GlobalOrderDto> pageList(GlobalOrderPageEntity entity);

    /**
     * 根据用户和币种信息查询已用额度
     */
    BigDecimal findAllByCId(@Param("cId") Long cId,@Param("payoutCurrency") String payoutCurrency,@Param("transferType") String transferType,@Param("payoutMethod") String payoutMethod);

    GlobalOrderSumDto globalOrderSum(GlobalOrderPageEntity entity);
}
