parent
745a13a8f8
commit
d6cefd3902
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ public class TaskManager implements InitializingBean, AutoCloseable {
|
||||||
|
|
||||||
// --- Планирование задач ---
|
// --- Планирование задач ---
|
||||||
protected void updateScheduler() {
|
protected void updateScheduler() {
|
||||||
Collection<PlannerAllToday> schedulerAllTodays = plannerAllTodayMap.getAllValues();
|
Collection<PlannerAllToday> schedulerAllTodays = plannerAllTodayMap.getCollectionObjectsByFieldValues(Map.of("clearingDate", LocalDate.now()));
|
||||||
Collection<PlannerAllToday> sortedSchedulers =
|
Collection<PlannerAllToday> sortedSchedulers =
|
||||||
schedulerAllTodays.stream().sorted((o1, o2) -> (Active.equalsByKey(o1.getTaskStatus()) && Cancel.equalsByKey(o2.getTaskStatus())) ? -1 : 0)
|
schedulerAllTodays.stream().sorted((o1, o2) -> (Active.equalsByKey(o1.getTaskStatus()) && Cancel.equalsByKey(o2.getTaskStatus())) ? -1 : 0)
|
||||||
.collect(Collectors.toCollection(ArrayList::new));
|
.collect(Collectors.toCollection(ArrayList::new));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue