1.pms代码调整

This commit is contained in:
2024-02-29 18:03:27 +08:00
parent 8122c7569d
commit 789ebff40b
7 changed files with 108 additions and 24 deletions

View File

@@ -149,6 +149,10 @@ public interface DeptFeignClient {
@PostMapping("/getDeptByCodeList")
HttpResult<List<Dept>> getDeptByCodeList(@RequestBody List<String> list);
@PostMapping("/getDeptInfoListByIds")
HttpResult<List<Dept>> getDeptInfoListByIds(@RequestBody List<String> deptIds);
/**
* 获取所有的部门集合
* @author xy

View File

@@ -135,6 +135,12 @@ public class DeptFeignClientFallbackFactory implements FallbackFactory<DeptFeign
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<Dept>> getDeptInfoListByIds(List<String> deptIds) {
log.error("{}异常,降级处理,异常为:{}","根据部门ids获取部门集合:",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<Dept>> getAllDept() {
log.error("{}异常,降级处理,异常为:{}","获取所有单位:",cause.toString());