This commit is contained in:
parent
60e7c6ac39
commit
59d0b000d1
2 changed files with 5 additions and 6 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package ru.spcex.clearing.imdg.object;
|
||||
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
import ru.clearing.classes.statics.data.scheduler.PlannerAllToday;
|
||||
import ru.spcex.clearing.imdg.IMDGDistributedNames;
|
||||
import ru.spcex.clearing.imdg.base.TemplateMapStore;
|
||||
|
|
@ -9,9 +8,11 @@ import ru.spcex.platform.utils.time.TimeUtil;
|
|||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.time.LocalTime;
|
||||
|
||||
@Component
|
||||
/**
|
||||
* Не требуется сторить в базу и поднимать из нее значения
|
||||
*/
|
||||
//@Component
|
||||
public class PlannerAllTodayMapStore extends TemplateMapStore<PlannerAllToday> {
|
||||
|
||||
public PlannerAllTodayMapStore(JdbcTemplate jdbcTemplate) {
|
||||
|
|
|
|||
|
|
@ -58,9 +58,7 @@ public class PlannerAllTodayMaker {
|
|||
listOfPlannerAllToday.removeIf((allToday) -> needRemoveByPlanner(planner, allToday));
|
||||
}
|
||||
});
|
||||
listOfPlannerAllToday.stream()
|
||||
.filter(plannerAllToday -> null == getFirstObjectByFieldValues(Map.of(
|
||||
"parentId", plannerAllToday.getParentId())))
|
||||
listOfPlannerAllToday
|
||||
.forEach(plannerAllToday -> {
|
||||
plannerAllToday.setId(hazelcastInstance.getIdGenerator(MAP_SEQUENCE_NAME).newId());
|
||||
plannerAllTodayMap.put(plannerAllToday.getId(), plannerAllToday);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue