bug提交
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user