1.pms代码调整
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user