Skip to content

Commit 0253f0b

Browse files
committed
秋秋说修改为 <= size
1 parent e997e33 commit 0253f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/plugins/PaginationInterceptor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public Object intercept(Invocation invocation) throws Throwable {
177177
/*
178178
* 处理单页条数限制
179179
*/
180-
if (limit > 0 && limit < page.getSize()) {
180+
if (limit > 0 && limit <= page.getSize()) {
181181
page.setSize(limit);
182182
}
183183

0 commit comments

Comments
 (0)