Explorar el Código

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

tags/V1.3.3
wanjing hace 10 meses
padre
commit
289c559651
Se han modificado 2 ficheros con 6 adiciones y 6 borrados
  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 Ver fichero

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

+ 3
- 3
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/dept/update/UpdateDeptService.java Ver fichero

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

Cargando…
Cancelar
Guardar