|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<RoadSectionDto> newRoadSectionList = newEditDeptRequest.getRoadSectionDtoList(); |
|
|
List<RoadSectionDto> newRoadSectionList = newEditDeptRequest.getRoadSectionDtoList(); |
|
|
List<Section> newSectionList = new ArrayList<>(); |
|
|
List<Section> newSectionList = new ArrayList<>(); |
|
|
for (RoadSectionDto roadSectionDto : newRoadSectionList) { |
|
|
|
|
|
newSectionList.addAll(roadSectionDto.getSectionList()); |
|
|
|
|
|
|
|
|
if (CollectionUtil.isNotEmpty(newRoadSectionList)) { |
|
|
|
|
|
for (RoadSectionDto roadSectionDto : newRoadSectionList) { |
|
|
|
|
|
newSectionList.addAll(roadSectionDto.getSectionList()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
List<String> newSectionIdList = newSectionList.stream().map(o -> o.getId()).collect(Collectors.toList()); |
|
|
List<String> newSectionIdList = newSectionList.stream().map(o -> o.getId()).collect(Collectors.toList()); |
|
|
|
|
|
|