package com.kxs.stat.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kxs.stat.api.model.KxsMerchantTrade;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

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

/**
 * 商户交易统计总表(KxsMerchantTrade)表数据库访问层
 *
 * @author 系统
 * @since 2024-05-07 17:25:06
 */
@Mapper
public interface KxsMerchantTradeMapper extends BaseMapper<KxsMerchantTrade> {

    void automaticTableCreationTasks(String tableName);

    /**
     * 根据日期天in查询交易额
     *
     * @param mchId 商户ID
     * @param times     日期集合
     * @param tableName 表名
     * @return {@link List}<{@link KxsMerchantTrade}>
     */
    List<KxsMerchantTrade> mchTradeInListOfDay(@Param("mchId") Long mchId, @Param("times") List<Integer> times, @Param("tableName") String tableName);


}

