package cn.pluss.platform.bill;

import cn.pluss.platform.entity.MerchantBillStatistics;
import cn.pluss.platform.mapper.MerchantBillStatisticsMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 按日统计商户的账单 服务类
 * </p>
 *
 * @author Djh
 * @since 2021-03-11
 */
public interface MerchantBillStatisticsService extends IService<MerchantBillStatistics> {

    /**
     * 保存指定日期的账单总计统计
     * @param day   日期格式为 yyyy-MM-dd
     */
    default void saveDaysBill(String day) {
        ((MerchantBillStatisticsMapper) getBaseMapper()).insertDuringBill(day, day);
    }
}
