REQ-2135: 兼容total为0的情况

This commit is contained in:
yanglin 2024-04-08 20:45:55 +08:00
parent b9a2a6959c
commit dff42aa276

View File

@ -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 {