From 85f5baee0e3d255860395278dcb5cbb5cc766023 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期一, 10 七月 2023 15:13:37 +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