Browse Source

修改部门,去掉航道航段为必填

tags/V1.3.3
wanjing 1 year ago
parent
commit
cfb489ba60
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/dept/update/UpdateDeptService.java

+ 4
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/dept/update/UpdateDeptService.java View File



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());



Loading…
Cancel
Save