Browse Source

1、添加部门,去掉航道航段为必填;2、修改部门部门,去掉航道航段为必填;

tags/V1.3.3
wanjing 1 year ago
parent
commit
289c559651
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/dept/add/AddDeptService.java
  2. +3
    -3
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/dept/update/UpdateDeptService.java

+ 3
- 3
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/dept/add/AddDeptService.java View File

} }


// 新增部门,公路和路段信息不能为空 // 新增部门,公路和路段信息不能为空
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();

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

} }


// 修改部门,公路和路段信息不能为空 // 修改部门,公路和路段信息不能为空
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();

Loading…
Cancel
Save