部门单位修改接口新增

This commit is contained in:
2023-10-26 08:36:12 +08:00
parent 803a15c56d
commit a07796c431
2 changed files with 11 additions and 0 deletions

View File

@@ -62,4 +62,9 @@ public interface AreaFeignClient {
@GetMapping("/selectAreaByName/{name}") @GetMapping("/selectAreaByName/{name}")
HttpResult<Area> selectAreaByName(@PathVariable("name") String name); HttpResult<Area> selectAreaByName(@PathVariable("name") String name);
@PostMapping("/getPidAreaList")
HttpResult<List<Area>> getPidAreaList(@RequestParam("areaId")String areaId , @RequestParam("type") Integer type);
} }

View File

@@ -73,6 +73,12 @@ public class AreaFeignClientFallbackFactory implements FallbackFactory<AreaFeign
throw new BusinessException(finalExceptionEnum); throw new BusinessException(finalExceptionEnum);
} }
@Override
public HttpResult<List<Area>> getPidAreaList(String areaId, Integer type) {
log.error("{}异常,降级处理,异常为:{}","获取指定区域父级的子级区域集合",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
}; };
} }
} }