package com.datacenter.service;

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

import java.time.LocalDate;

public interface StatContractPnlService extends IService<StatContractPnl> {

    StatContractPnl computeAndSave(LocalDate date, boolean includeInternal);

    void computeAndSaveBoth(LocalDate date);

    StatContractPnl getByDate(LocalDate date, boolean includeInternal);

    /** 补算过去 days 天的历史数据（不含今天） */
    void backfill(int days);
}
