package com.crm.ib.task.dao.mapper;

import com.crm.rely.backend.core.entity.daily.DailyCommonParamEntity;
import com.crm.rely.backend.core.pojo.table.TradeHistoryTable;
import com.crm.rely.backend.core.pojo.view.DailyHistoryTradeView;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * Created by max on 2020/12/1.
 */
@Component
public interface DailyTradeDao {

    List<TradeHistoryTable> getData(DailyCommonParamEntity entity);

    List<TradeHistoryTable> findAllTradeBetweenDate(@Param("startDate") Date startDate, @Param("endDate") Date endDate, @Param("platform") String platform);

    List<TradeHistoryTable> findAllMissTradeBetweenDate(@Param("startDate") Date startDate, @Param("endDate") Date endDate, @Param("platform") String platform);

}
