} | } | ||||
// 新增部门,公路和路段信息不能为空 | // 新增部门,公路和路段信息不能为空 | ||||
if (CollectionUtils.isEmpty(addDeptRequest.getRoadSectionDtoList())) { | |||||
return JsonResult.error(AddDeptCodeEnum.ROAD_IS_NULL.getCode(), AddDeptCodeEnum.ROAD_IS_NULL.getMsg()); | |||||
} | |||||
// if (CollectionUtils.isEmpty(addDeptRequest.getRoadSectionDtoList())) { | |||||
// return JsonResult.error(AddDeptCodeEnum.ROAD_IS_NULL.getCode(), AddDeptCodeEnum.ROAD_IS_NULL.getMsg()); | |||||
// } | |||||
List<Section> sectionList; | List<Section> sectionList; | ||||
List<RoadSectionDto> roadSectionDtoList = addDeptRequest.getRoadSectionDtoList(); | List<RoadSectionDto> roadSectionDtoList = addDeptRequest.getRoadSectionDtoList(); |
} | } | ||||
// 修改部门,公路和路段信息不能为空 | // 修改部门,公路和路段信息不能为空 | ||||
if (CollectionUtil.isEmpty(newEditDeptRequest.getRoadSectionDtoList())) { | |||||
return JsonResult.error(EditDeptCodeEnum.ROAD_IS_NULL.getCode(), EditDeptCodeEnum.ROAD_IS_NULL.getMsg()); | |||||
} | |||||
// if (CollectionUtil.isEmpty(newEditDeptRequest.getRoadSectionDtoList())) { | |||||
// return JsonResult.error(EditDeptCodeEnum.ROAD_IS_NULL.getCode(), EditDeptCodeEnum.ROAD_IS_NULL.getMsg()); | |||||
// } | |||||
List<Section> sectionList; | List<Section> sectionList; | ||||
List<RoadSectionDto> roadSectionDtoList = newEditDeptRequest.getRoadSectionDtoList(); | List<RoadSectionDto> roadSectionDtoList = newEditDeptRequest.getRoadSectionDtoList(); |