Skip to content

Commit

Permalink
page查询结果为空,也返回count
Browse files Browse the repository at this point in the history
  • Loading branch information
xjw committed Feb 5, 2024
1 parent 5ea1df4 commit 4ebcfda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static <T> Page<T> build(Q q, List<T> list, TotalRows totalRows) {
int size = list.size();
if (page == 0) {
count = size;
} else if (size > 0) {
} else {
try {
count = totalRows.count();
}catch (Exception e){
Expand Down

0 comments on commit 4ebcfda

Please sign in to comment.