1
phpcjl
2024-12-19 89a28adb80842f1eba611a8dc7eaecacbbfc6498
1
1个文件已修改
7 ■■■■ 已修改文件
ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/BalanceChangeRecordServiceImpl.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/BalanceChangeRecordServiceImpl.java
@@ -86,10 +86,13 @@
        long current = page.getCurrent();
        long size = page.getSize();
        int fromIndex = (int) (current - 1);
        if (current < 1) {
            current = 1;
        }
        int fromIndex = (int) ((current - 1) * size);
        int toIndex = (int) Math.min(fromIndex + size, walletStatisticsDetailList.size());
        if (fromIndex < 0 || toIndex > walletStatisticsDetailList.size()) {
        if (fromIndex >= walletStatisticsDetailList.size()) {
            throw new ServiceException("页面参数无效");
        }