bug提交

This commit is contained in:
2022-08-09 11:15:04 +08:00
parent d74f75fd8a
commit a26b78b225
4 changed files with 7 additions and 69 deletions

View File

@@ -55,14 +55,14 @@ public interface DeptFeignClient {
HttpResult<List<PvTerminalTreeVO>> allDeptList();
/**
* 获取所有部门
* 根据部门id获取部门信息
*/
@GetMapping("/getDeptById")
HttpResult<Dept> getDeptById(@RequestParam("deptId") String deptId);
/**
* 获取所有部门
* 根据部门id获取所有部门ids
*/
@GetMapping("/getDepSonIdtByDeptId")
HttpResult<List<String>> getDepSonIdtByDeptId(@RequestParam("deptId") String deptId);

View File

@@ -66,13 +66,13 @@ public class DeptFeignClientFallbackFactory implements FallbackFactory<DeptFeign
@Override
public HttpResult<Dept> getDeptById(String deptId) {
log.error("{}异常,降级处理,异常为:{}","查询部门异常",cause.toString());
log.error("{}异常,降级处理,异常为:{}","查询部门信息异常",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<String>> getDepSonIdtByDeptId(String deptId) {
log.error("{}异常,降级处理,异常为:{}","查询所部门索引异常",cause.toString());
log.error("{}异常,降级处理,异常为:{}","查询所有子孙部门异常",cause.toString());
throw new BusinessException(finalExceptionEnum);
}