REQ-2135: 兼容total为0的情况
This commit is contained in:
parent
b9a2a6959c
commit
dff42aa276
@ -54,8 +54,13 @@ public class BeautifulPaginationInterceptor implements Interceptor, Ordered {
|
||||
});
|
||||
if (limitPresent.get())
|
||||
return invocation.proceed();
|
||||
else
|
||||
return delegate.intercept(invocation);
|
||||
else {
|
||||
Object stmt = delegate.intercept(invocation);
|
||||
// 这里之所以要这样做是因当总条数为0的时候
|
||||
if (stmt == null)
|
||||
return invocation.proceed();
|
||||
return stmt;
|
||||
}
|
||||
}
|
||||
|
||||
private static class CustomPaginationInterceptor extends PaginationInterceptor {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user