From b2fce0dc7dc4ea5dec9792a2bc3ceb9d33d6e07b Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期一, 04 九月 2023 13:59:52 +0800
Subject: [PATCH] 修改后台社区动态加载不出来

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/BcRegionApi.java |   26 +++++++++++++++++++++++---
 1 files changed, 23 insertions(+), 3 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 b8ad408..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
@@ -8,6 +8,7 @@
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.panzhihua.service_community.entity.BcRegion;
 import com.panzhihua.service_community.service.BcRegionService;
+import org.apache.ibatis.annotations.Param;
 import org.springframework.web.bind.annotation.*;
 
 import javax.annotation.Resource;
@@ -34,11 +35,30 @@
     /**
      * 关键字查询
      *
-     * @param name 查询实体
+     * @param province 查询实体
      * @return 所有数据
      */
     @PostMapping("queryAll")
-    public R selectAll(@RequestParam("name") String  name) {
-        return this.bcRegionService.pageList(name);
+    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);
+    }
+        /**
+     * 关键字查询
+     *
+     * @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){
+        return this.bcRegionService.levelList(level,code);
+    }
+
+    @GetMapping("levelListBackstage")
+    public R levelListBackstage(){
+        return this.bcRegionService.levelListBackstage();
     }
 }

--
Gitblit v1.7.1