package com.red.circle.console.infra.database.rds.service.count;

import com.red.circle.console.infra.database.rds.entity.count.StatisticsMonthlyPurchaseAmountPlatform;
import com.red.circle.framework.mybatis.service.BaseService;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 平台每月内购量 服务类
 * </p>
 *
 * @author pengliang
 * @since 2022-03-08
 */
public interface StatisticsMonthlyPurchaseAmountPlatformService extends
    BaseService<StatisticsMonthlyPurchaseAmountPlatform> {

  /**
   * 统计最近latestMonth月内购情况.
   */
  List<StatisticsMonthlyPurchaseAmountPlatform> listLatestMonth(Integer latestMonth);


  /**
   * 累计线下支付 数量.
   */
  void inrOfflineQuantity(String sysOrigin, Integer dateNumber, BigDecimal quantity);

  /**
   * 获取最近一个月数据, 根据平台分组.
   */
  Map<String, List<StatisticsMonthlyPurchaseAmountPlatform>> mapAllSysOrigin(Integer latestMonth);

}
