Merge pull request #2276 from langghaha/develop

replace null return value
This commit is contained in:
Peter Zhu 2020-01-10 16:02:38 +08:00 committed by GitHub
commit a96cb67f44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ public class PaginationHelper<E> {
page.setTotalCount(rowCountInt); page.setTotalCount(rowCountInt);
if (pageNo > pageCount) { if (pageNo > pageCount) {
return null; return page;
} }
final int startRow = (pageNo - 1) * pageSize; final int startRow = (pageNo - 1) * pageSize;
@ -121,7 +121,7 @@ public class PaginationHelper<E> {
page.setTotalCount(rowCountInt); page.setTotalCount(rowCountInt);
if (pageNo > pageCount) { if (pageNo > pageCount) {
return null; return page;
} }
String selectSQL = sqlFetchRows; String selectSQL = sqlFetchRows;
@ -162,7 +162,7 @@ public class PaginationHelper<E> {
page.setTotalCount(rowCountInt); page.setTotalCount(rowCountInt);
if (pageNo > pageCount) { if (pageNo > pageCount) {
return null; return page;
} }
String selectSQL = sqlFetchRows; String selectSQL = sqlFetchRows;