代码提交部门新增根据code查询下级所有 pms台账

This commit is contained in:
2023-02-22 10:11:24 +08:00
parent 600dc1c38e
commit 044a7bffa7
19 changed files with 223 additions and 134 deletions

View File

@@ -85,6 +85,12 @@ public interface DeptFeignClient {
@GetMapping("/getDepSonSelfCodetByDeptId")
HttpResult<List<String>> getDepSonSelfCodetByDeptId(@RequestParam("deptId") String deptId);
/**
* 根据部门code获取所有子部门codes
*/
@GetMapping("/getDepSonSelfCodetByCode")
HttpResult<List<String>> getDepSonSelfCodetByCode(@RequestParam("code") String code);
/**
* 根据部门id获取子部门ids

View File

@@ -88,6 +88,12 @@ public class DeptFeignClientFallbackFactory implements FallbackFactory<DeptFeign
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<String>> getDepSonSelfCodetByCode(String code) {
log.error("{}异常,降级处理,异常为:{}","查询所有子孙部门异常",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<String>> getDepSonIdByDeptId(String deptId) {
log.error("{}异常,降级处理,异常为:{}","查询所有子孙部门异常",cause.toString());