feat:导出报名记录添加按照报名时间倒叙

This commit is contained in:
yangxinyu
2025-12-12 18:44:06 +08:00
parent e7706a7319
commit efb3b49603

View File

@@ -230,6 +230,8 @@ public class StudyCourseApi extends ApiBaseController{
userInfoMap.put(user.getAid(), user); userInfoMap.put(user.getAid(), user);
} }
} }
// 按报名时间倒序排序
signRecordList.sort(Comparator.comparing(StudySignup::getSignTime).reversed());
// 4. 原始数据→导出DTO格式化处理状态转中文、日期转字符串等 // 4. 原始数据→导出DTO格式化处理状态转中文、日期转字符串等
List<CourseSignDto> exportDtoList = new ArrayList<>(); List<CourseSignDto> exportDtoList = new ArrayList<>();
if (signRecordList != null) { if (signRecordList != null) {