修复分页参数size<0时全表查询的问题

This commit is contained in:
SEVEN_ME 2021-10-11 15:46:20 +08:00
parent 163eb86e9d
commit ba2db2e2d8

View File

@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.ParameterUtils; import com.baomidou.mybatisplus.core.toolkit.ParameterUtils;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import com.baomidou.mybatisplus.extension.plugins.pagination.dialects.IDialect; import com.baomidou.mybatisplus.extension.plugins.pagination.dialects.IDialect;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.executor.Executor; import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.mapping.BoundSql; import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.MappedStatement; import org.apache.ibatis.mapping.MappedStatement;
@ -21,6 +23,8 @@ import java.sql.SQLException;
* @author seven * @author seven
* @since 2021年10月11日 * @since 2021年10月11日
*/ */
@Data
@NoArgsConstructor
public class LimitInterceptor extends PaginationInnerInterceptor { public class LimitInterceptor extends PaginationInnerInterceptor {
/** /**