diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/payment/service/impl/DriveSchoolPayServiceImpl.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/payment/service/impl/DriveSchoolPayServiceImpl.java index 847f0ca9..a39d02c9 100644 --- a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/payment/service/impl/DriveSchoolPayServiceImpl.java +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/payment/service/impl/DriveSchoolPayServiceImpl.java @@ -99,9 +99,9 @@ public class DriveSchoolPayServiceImpl implements DriveSchoolPayService IPage driveSchoolPayIPage = driveSchoolPayMapper.stuList(driveSchoolPay, page); List driveSchoolPays = driveSchoolPayIPage.getRecords(); - ArrayList collect = driveSchoolPays.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(DriveSchoolPay::getIdentity))), ArrayList::new)); +// ArrayList collect = driveSchoolPays.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(DriveSchoolPay::getIdentity))), ArrayList::new)); - for (DriveSchoolPay schoolPay : collect) { + for (DriveSchoolPay schoolPay : driveSchoolPays) { Long userId = schoolPay.getUserId(); AdminUserRespDTO sysUser = userApi.getUser(userId); //SysUser sysUser = sysUserMapper.selectUserById(userId); @@ -110,8 +110,8 @@ public class DriveSchoolPayServiceImpl implements DriveSchoolPayService } } //根据时间倒序排序 - collect.sort(Comparator.comparing(DriveSchoolPay::getCreateTime).reversed()); - driveSchoolPayIPage.setRecords(collect); + driveSchoolPays.sort(Comparator.comparing(DriveSchoolPay::getCreateTime).reversed()); + driveSchoolPayIPage.setRecords(driveSchoolPays); return driveSchoolPayIPage; }