添加通过部门编号查询部门接口

This commit is contained in:
2022-11-28 10:14:37 +08:00
parent ae39bcf84c
commit a9f0b494b0
9 changed files with 80 additions and 2 deletions

View File

@@ -72,6 +72,14 @@ public interface DeptFeignClient {
@GetMapping("/getDepSonIdtByDeptId")
HttpResult<List<String>> getDepSonIdtByDeptId(@RequestParam("deptId") String deptId);
/**
* 根据部门id获取所有子部门ids
*/
@GetMapping("/getDepSonSelfCodetByDeptId")
HttpResult<List<String>> getDepSonSelfCodetByDeptId(@RequestParam("deptId") String deptId);
/**
* 根据部门id获取子部门ids
*/

View File

@@ -82,6 +82,12 @@ public class DeptFeignClientFallbackFactory implements FallbackFactory<DeptFeign
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<String>> getDepSonSelfCodetByDeptId(String deptId) {
log.error("{}异常,降级处理,异常为:{}","查询所有子孙部门异常",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<String>> getDepSonIdByDeptId(String deptId) {
log.error("{}异常,降级处理,异常为:{}","查询所有子孙部门异常",cause.toString());