package com.crm.activity.dao.mapper;

import com.crm.rely.backend.model.pojo.view.ActivityRaceCalcView;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author y
 * @create 2022/7/22
 */
@Component
public interface ActivityRaceCalcMapper {

    List<ActivityRaceCalcView> findAllByRuleId(@Param("ruleId") Long ruleId, @Param("platform") String platform);

    List<ActivityRaceCalcView> findAccountAndDwInfoByRuleId(@Param("ruleId") Long ruleId, @Param("platform") String platform);

    List<ActivityRaceCalcView> findCloseTradeByRuleId(@Param("ruleId") Long ruleId, @Param("platform") String platform);

    List<ActivityRaceCalcView> findOpenTradeByRuleId(@Param("ruleId") Long ruleId, @Param("platform") String platform);

}
