优化计划的排序

This commit is contained in:
xiaozzzi 2023-10-01 00:42:54 +08:00
parent 0408cb0834
commit 1e1aea8323

View File

@ -64,6 +64,7 @@ public class PlanUtil {
plans.forEach(p -> p.setSort(-1));
byDay.forEach((date, list) -> {
list.sort((p1, p2) -> SortUtil.strSort.compare(p1.getPlanStartTime(), p2.getPlanStartTime()));
for (PlanDayRes plan : list) {
if (plan.getSort() == null) {
plan.setSort(-1);
@ -84,6 +85,7 @@ public class PlanUtil {
for (PlanDayRes groupPlan : byGroupId.get(plan.getGroupId())) {
groupPlan.setSort(targetSort);
}
break;
}
}