代码调整

This commit is contained in:
2022-12-12 15:18:48 +08:00
parent 9b8af7945a
commit d043ab478b
10 changed files with 60 additions and 4 deletions

View File

@@ -92,4 +92,9 @@ public interface DeptFeignClient {
@GetMapping("/getDirectSonSelf")
HttpResult<List<Dept>> getDirectSonSelf(@RequestParam("deptId") String deptId);
/**
* 获取所有本部
*/
@GetMapping("/getSpecialDeptList")
HttpResult<List<Dept>> getSpecialDeptList();
}

View File

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