|
@ -54,13 +54,12 @@ public class CustomServiceImpl implements CustomService { |
|
|
// 获取部门冗余信息
|
|
|
// 获取部门冗余信息
|
|
|
if (null != formDTO.getDeptId()) { |
|
|
if (null != formDTO.getDeptId()) { |
|
|
Result<ParentAndAllDeptDTO> pidInfoResult = adminFeignClient.getParentAndAllDept(formDTO.getDeptId()); |
|
|
Result<ParentAndAllDeptDTO> pidInfoResult = adminFeignClient.getParentAndAllDept(formDTO.getDeptId()); |
|
|
if (!pidInfoResult.success()) { |
|
|
if (pidInfoResult.success() && null != pidInfoResult.getData()) { |
|
|
return new Result().error("获取部门信息失败" + pidInfoResult.getMsg()); |
|
|
formDTO.setParentDeptIds(pidInfoResult.getData().getParentDeptIds()); |
|
|
|
|
|
formDTO.setParentDeptNames(pidInfoResult.getData().getParentDeptNames()); |
|
|
|
|
|
formDTO.setAllDeptIds(pidInfoResult.getData().getAllDeptIds()); |
|
|
|
|
|
formDTO.setAllDeptNames(pidInfoResult.getData().getAllDeptNames()); |
|
|
} |
|
|
} |
|
|
formDTO.setParentDeptIds(pidInfoResult.getData().getParentDeptIds()); |
|
|
|
|
|
formDTO.setParentDeptNames(pidInfoResult.getData().getParentDeptNames()); |
|
|
|
|
|
formDTO.setAllDeptIds(pidInfoResult.getData().getAllDeptIds()); |
|
|
|
|
|
formDTO.setAllDeptNames(pidInfoResult.getData().getAllDeptNames()); |
|
|
|
|
|
} |
|
|
} |
|
|
return customFeignClient.report(formDTO); |
|
|
return customFeignClient.report(formDTO); |
|
|
} |
|
|
} |
|
|