Browse Source

Merge branch 'lcy' of http://47.107.53.207:3000/traineeCoder001/Bailian-Al

JensionDzero 1 year ago
parent
commit
ede0c6512b

+ 2 - 2
benyun-core/src/main/java/com/benyun/core/controller/BrandController.java

@@ -28,7 +28,7 @@ public class BrandController extends BaseController {
     }
 
 //    获取品牌信息列表
-    @GetMapping("/list")
+    @PostMapping("/list")
     public R list(BrandListQueryBody body){
         String userId = "1";
         return R.ok(brandService.searchListByMulti(body,userId));
@@ -89,7 +89,7 @@ public class BrandController extends BaseController {
     }
 
 //    获取各地区品牌网点数量分布情况
-    @GetMapping("/countDistribution")
+    @PostMapping("/countDistribution")
     public R categoryDis(BrandListQueryBody body){
         List<String> addrCode = body.getAddrCode();
         return R.ok(brandService.searchAddrDistribution(addrCode));

+ 3 - 4
benyun-core/src/main/java/com/benyun/core/controller/WdInfoController.java

@@ -11,6 +11,7 @@ import lombok.RequiredArgsConstructor;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.validation.annotation.Validated;
 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;
 
@@ -26,7 +27,7 @@ public class WdInfoController {
     WdInfoService wdInfoService;
 
 //    获取各地区网点分类分布情况
-    @GetMapping("/categoryDistribution")
+    @PostMapping("/categoryDistribution")
     public R categoryDistribution(BrandListQueryBody body){
         List<String> addrCodes = body.getAddrCode();
         List<String> typeCodes = body.getTypeCode();
@@ -34,7 +35,7 @@ public class WdInfoController {
     }
 
 //    获取各地区网点类型分布情况
-    @GetMapping("/wdTypeDistribution")
+    @PostMapping("/wdTypeDistribution")
     public R wdTypeDistribution(BrandListQueryBody body){
         List<String> addrCodes = body.getAddrCode();
         List<String> typeCodes = body.getTypeCode();
@@ -47,6 +48,4 @@ public class WdInfoController {
         return R.ok(wdInfoService.searchWdTotal());
     }
 
-
-
 }