From e6682c9434f133a25660110e39a1f0f993267a65 Mon Sep 17 00:00:00 2001
From: kongdeqiang <kongdeqiang960204@163.com>
Date: 星期四, 27 七月 2023 14:03:55 +0800
Subject: [PATCH] 提交更新

---
 src/main/java/com/boying/controller/StreetController.java |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/src/main/java/com/boying/controller/StreetController.java b/src/main/java/com/boying/controller/StreetController.java
index b6a8390..55abf63 100644
--- a/src/main/java/com/boying/controller/StreetController.java
+++ b/src/main/java/com/boying/controller/StreetController.java
@@ -12,6 +12,7 @@
 import com.boying.service.StreetService;
 import com.boying.util.LngLatUtil;
 import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -80,7 +81,7 @@
         return R.ok();
     }
 
-    @PostMapping("/findById")
+    @GetMapping("/findById")
     public Object findById(Long id,int type) {
         if(type==0){
             QueryWrapper<StreetReRoad> roadQueryWrapper = new QueryWrapper<>();
@@ -108,18 +109,19 @@
         }
     }
 
-    @PostMapping("/findList")
+    @GetMapping("/findList")
     public Object findAll() {
         Map<String,Object> map = new HashMap<>();
         QueryWrapper<Street> wrapper = new QueryWrapper<>();
-        wrapper.lambda()
-                .eq(Street::getType,0);
-        map.put("list1",streetService.list(wrapper));
-        wrapper.clear();
-        wrapper.lambda()
-                .eq(Street::getType,1);
-        map.put("list2",streetService.list(wrapper));
-        return R.ok(map);
+//        wrapper.lambda()
+//                .eq(Street::getType,0);
+//        map.put("list1",streetService.list(wrapper));
+//        wrapper.clear();
+//        wrapper.lambda()
+//                .eq(Street::getType,1);
+//        map.put("list2",streetService.list(wrapper));
+
+        return R.ok(streetService.list());
     }
 
     @PostMapping("findLogo")

--
Gitblit v1.9.1