11
This commit is contained in:
1 parent
bcd821e210
commit
0e7cab1ab6
1 file changed
+4
-2
+4
-2
@@ -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 = 1000;
|
||||
long pageSize = 2000;
|
||||
long finalTotal = (total == null || total == 0) ? 0 : total;
|
||||
int pages = (int) ((finalTotal + pageSize - 1) / pageSize);
|
||||
if (pages == 0) pages = 1;
|
||||
@@ -350,7 +350,9 @@ public class WalletTransactionServiceImpl extends ServiceImpl<WalletTransactionM
|
||||
RequestContextHolder.setRequestAttributes(requestAttributes);
|
||||
}
|
||||
try {
|
||||
Page<WalletTransactionVo> pageList = scopePageList(new Page<>(currentPage, pageSize), dto, dataScope);
|
||||
Page<Object> page = new Page<>(currentPage, pageSize);
|
||||
page.setMaxLimit(pageSize);
|
||||
Page<WalletTransactionVo> pageList = scopePageList(page, dto, dataScope);
|
||||
if (ObjectUtil.isEmpty(pageList) || ObjectUtil.isEmpty(pageList.getRecords())) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user