新增获取部门子集接口
This commit is contained in:
@@ -67,4 +67,10 @@ public interface DeptFeignClient {
|
||||
@GetMapping("/getDepSonIdtByDeptId")
|
||||
HttpResult<List<String>> getDepSonIdtByDeptId(@RequestParam("deptId") String deptId);
|
||||
|
||||
/**
|
||||
* 根据部门id获取子部门ids
|
||||
*/
|
||||
@GetMapping("/getDepSonIdByDeptId")
|
||||
HttpResult<List<String>> getDepSonIdByDeptId(@RequestParam("deptId") String deptId);
|
||||
|
||||
}
|
||||
|
||||
@@ -76,6 +76,11 @@ public class DeptFeignClientFallbackFactory implements FallbackFactory<DeptFeign
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<String>> getDepSonIdByDeptId(String deptId) {
|
||||
log.error("{}异常,降级处理,异常为:{}","查询所有子孙部门异常",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user