代码调整
This commit is contained in:
@@ -92,4 +92,9 @@ public interface DeptFeignClient {
|
||||
@GetMapping("/getDirectSonSelf")
|
||||
HttpResult<List<Dept>> getDirectSonSelf(@RequestParam("deptId") String deptId);
|
||||
|
||||
/**
|
||||
* 获取所有本部
|
||||
*/
|
||||
@GetMapping("/getSpecialDeptList")
|
||||
HttpResult<List<Dept>> getSpecialDeptList();
|
||||
}
|
||||
|
||||
@@ -99,6 +99,12 @@ public class DeptFeignClientFallbackFactory implements FallbackFactory<DeptFeign
|
||||
log.error("{}异常,降级处理,异常为:{}","查询所有子部门以及自身异常",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<Dept>> getSpecialDeptList() {
|
||||
log.error("{}异常,降级处理,异常为:{}","查询所有本部异常",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user