package quant.rich.emoney.mapper.postgre;

import java.util.Collection;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import quant.rich.emoney.entity.postgre.StockStrategy;

@Component
@Mapper
@DS("postgre")
public interface StockStrategyMapper extends BaseMapper<StockStrategy> {

    int insertOrUpdateBatch(
            @Param("list") Collection<StockStrategy> list,
            @Param("batchSize") int batchSize
        );
}
