package com.github.wz2cool.dynamic.mybatis.mapper;

import com.github.wz2cool.dynamic.DynamicQuery;
import com.github.wz2cool.dynamic.mybatis.mapper.constant.MapperConstants;
import com.github.wz2cool.dynamic.mybatis.mapper.provider.DynamicQueryProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

public interface SelectRowBoundsByDynamicQueryMapper<T> {

    @SelectProvider(type = DynamicQueryProvider.class, method = "dynamicSQL")
    List<T> selectRowBoundsByDynamicQuery(@Param(MapperConstants.DYNAMIC_QUERY) DynamicQuery<T> dynamicQuery);
}
@@ -344,16 +344,60 @@
 rovider;
+%0Aimport org.apache.ibatis.session.RowBounds;
 %0A%0Aimport
@@ -593,16 +593,29 @@
 icQuery(
+%0A            
 @Param(M
@@ -672,12 +672,45 @@
 micQuery
+,%0A            RowBounds rowBounds
 );%0A%7D

add rowbounds by dynamic query