From 45ea6bea2b4f555d6cfef66fd331966d581f17b9 Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期四, 08 十二月 2022 17:11:26 +0800 Subject: [PATCH] #feat 新增接口 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/BcRegionApi.java | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/BcRegionApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/BcRegionApi.java index bcf8a08..a428338 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/BcRegionApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/BcRegionApi.java @@ -40,7 +40,17 @@ */ @PostMapping("queryAll") public R selectAll(@RequestParam("province") String province, @RequestParam("city") String city, @RequestParam("county")String country,@RequestParam("town")String town) { - return this.bcRegionService.pageList(province,city,country,town); + return this.bcRegionService.pageList(province, city, country, town); + } + /** + * 关键字查询 + * + * @param province 查询实体 + * @return 所有数据 + */ + @PostMapping("selectCommunityCodeByName") + public R selectCommunityCodeByName( @RequestParam("city") String city, @RequestParam("county")String country,@RequestParam("town")String town,@RequestParam("villagetr") String villagetr) { + return this.bcRegionService.selectCommunityCodeByName(city,country,town,villagetr); } @GetMapping("levelList") public R levelList(@RequestParam("level")Integer level,@RequestParam("code")String code){ -- Gitblit v1.7.1