补充新更新
This commit is contained in:
@@ -49,6 +49,9 @@ public interface AreaFeignClient {
|
||||
@PostMapping("/areaPro")
|
||||
HttpResult<Area> areaPro(@RequestParam("id")String id , @RequestParam("type")Integer type);
|
||||
|
||||
@PostMapping("/areaDeptPro")
|
||||
HttpResult<Area> areaDeptPro(@RequestParam("id")String id);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -61,6 +61,12 @@ public class AreaFeignClientFallbackFactory implements FallbackFactory<AreaFeign
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Area> areaDeptPro(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}","根据部门id查询省份信息",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Area> selectAreaByName(String name) {
|
||||
log.error("{}异常,降级处理,异常为:{}","根据行政区域名称查询详细",cause.toString());
|
||||
|
||||
Reference in New Issue
Block a user