feat:最大分页
This commit is contained in:
1 parent
32d51a3104
commit
bcd821e210
1 file changed
+1
-1
+1
-1
@@ -336,7 +336,7 @@ public class WalletTransactionServiceImpl extends ServiceImpl<WalletTransactionM
|
||||
map.put("startTime", LocalDateTimeUtil.format(dto.getCreateTimeList()[0], DatePattern.NORM_DATETIME_PATTERN));
|
||||
map.put("endTime", LocalDateTimeUtil.format(dto.getCreateTimeList()[1], DatePattern.NORM_DATETIME_PATTERN));
|
||||
}
|
||||
long pageSize = 2000;
|
||||
long pageSize = 1000;
|
||||
long finalTotal = (total == null || total == 0) ? 0 : total;
|
||||
int pages = (int) ((finalTotal + pageSize - 1) / pageSize);
|
||||
if (pages == 0) pages = 1;
|
||||
|
||||
Reference in new issue
Block a user