package com.bcxin.backend.domain.approval.services;

import com.bcxin.backend.domain.approval.entities.dest.BjGaServiceStatisticOdsEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collection;
import java.util.Date;

public interface BjApprovalDataPushService {
    /**
     * 推送从给定的日期到现在的数据
     */
    void pushApprovalDataFromDate(Date startDate);

    /**推送从给定时间之内的数据
     * */
    //void pushApprovalDataInDates(Date startDate, Date endDate);

    /**
     * 初始化推送数据
     *
     */
    void pushApprovalDataInit(Date startDate);

    @Transactional(transactionManager = "bjApprovalDestTransactionManager")
    void pushData(Collection<BjGaServiceStatisticOdsEntity> entities);
}
