package com.datacenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.datacenter.entity.stat.StatPlatformDailyPnl;

import java.time.LocalDate;

public interface StatPlatformDailyPnlService extends IService<StatPlatformDailyPnl> {

    void computeAndSaveBoth(LocalDate date);

    StatPlatformDailyPnl computeAndSave(LocalDate date, boolean includeInternal);

    StatPlatformDailyPnl getByDate(LocalDate date, boolean includeInternal);

    void backfill(int days);
}
