package com.ruoyi.web.modules.trading.mapper;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.trading.domain.dto.AppDistributorAmountBucketDto;
import com.ruoyi.web.modules.trading.domain.dto.AppDistributorTradeSummaryDto;

/**
 * 承销商小程序交易统计 Mapper。
 */
public interface AppDistributorTradeMapper
{
    AppDistributorTradeSummaryDto selectTradeSummary(
            @Param("distributorId") Long distributorId,
            @Param("rangeStart") Date rangeStart,
            @Param("rangeEnd") Date rangeEnd);

    List<AppDistributorAmountBucketDto> selectHourlyAmountTrend(
            @Param("distributorId") Long distributorId,
            @Param("rangeStart") Date rangeStart,
            @Param("rangeEnd") Date rangeEnd);

    List<AppDistributorAmountBucketDto> selectDailyAmountTrend(
            @Param("distributorId") Long distributorId,
            @Param("rangeStart") Date rangeStart,
            @Param("rangeEnd") Date rangeEnd);
}
