@@ -134,9 +134,9 @@ public class AddDeptService { | |||
} | |||
// 新增部门,公路和路段信息不能为空 | |||
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<RoadSectionDto> roadSectionDtoList = addDeptRequest.getRoadSectionDtoList(); |
@@ -139,9 +139,9 @@ public class UpdateDeptService { | |||
} | |||
// 修改部门,公路和路段信息不能为空 | |||
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<RoadSectionDto> roadSectionDtoList = newEditDeptRequest.getRoadSectionDtoList(); |