package com.jeequan.jeepay.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeequan.jeepay.db.entity.StatsTransferEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.Map;

/**
 * <p>
 * 代付转账交易数据统计表 Mapper 接口
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2024-05-22
 */
public interface StatsTransferMapper extends BaseMapper<StatsTransferEntity> {

    /**
     *
     * @param date
     * @return
     */
    int insertBatchStatsData(@Param("date") Date date);

    Page<StatsTransferEntity> selectTransferStats(Page<StatsTransferEntity> page, Map<String, Object> param, boolean isDetail);

    Page<StatsTransferEntity> selectHistoryTransferStats(Page<StatsTransferEntity> page, Map<String, Object> param, boolean isDetail);

}
