部门单位修改接口新增
This commit is contained in:
@@ -62,4 +62,9 @@ public interface AreaFeignClient {
|
||||
@GetMapping("/selectAreaByName/{name}")
|
||||
HttpResult<Area> selectAreaByName(@PathVariable("name") String name);
|
||||
|
||||
|
||||
@PostMapping("/getPidAreaList")
|
||||
HttpResult<List<Area>> getPidAreaList(@RequestParam("areaId")String areaId , @RequestParam("type") Integer type);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -73,6 +73,12 @@ public class AreaFeignClientFallbackFactory implements FallbackFactory<AreaFeign
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<Area>> getPidAreaList(String areaId, Integer type) {
|
||||
log.error("{}异常,降级处理,异常为:{}","获取指定区域父级的子级区域集合",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user