浏览代码

get->post

zhaowenrui 1 年之前
父节点
当前提交
1e3a8c6e4d

+ 6 - 6
src/main/java/com/sooka/sponest/data/digitalforest/controller/ForestBigDataController.java

@@ -175,8 +175,8 @@ public class ForestBigDataController extends BaseController {
      * @return
      */
     @ApiOperation(value = "林业资源(市级用用户按区县,区县用户按乡镇统计林区面积)", notes = "林业资源(市级用用户按区县,区县用户按乡镇统计林区面积)")
-    @GetMapping("/resourcesAreaCount")
-    public R selectResourcesAreaCount(CenterdataTForestResources centerdataTForestResources) throws IOException {
+    @PostMapping("/resourcesAreaCount")
+    public R selectResourcesAreaCount(@RequestBody CenterdataTForestResources centerdataTForestResources) throws IOException {
         return R.ok(forestBigDataService.selectResourcesAreaCount(centerdataTForestResources));
     }
 
@@ -185,14 +185,14 @@ public class ForestBigDataController extends BaseController {
      * @return
      */
     @ApiOperation(value = "林业网格(市级用用户按区县,区县用户按乡镇统计林业网格数量)", notes = "林业网格(市级用用户按区县,区县用户按乡镇统计林业网格数量)")
-    @GetMapping("/forestGridCount")
-    public R selectForestGridCount(CenterdataTForestGridLevelVo centerdataTForestGridLevel) throws IOException {
+    @PostMapping ("/forestGridCount")
+    public R selectForestGridCount(@RequestBody CenterdataTForestGridLevelVo centerdataTForestGridLevel) throws IOException {
         return R.ok(forestBigDataService.selectForestGridCount(centerdataTForestGridLevel));
     }
 
     @ApiOperation(value = "珍稀古树(市级用用户按区县,区县用户按乡镇统计珍稀古树数量)", notes = "珍稀古树(市级用用户按区县,区县用户按乡镇统计珍稀古树数量)")
-    @GetMapping ("/selectTreeCount")
-    public R selectTreeCount(CenterdataTForestTrees centerdataTForestTrees) {
+    @PostMapping ("/selectTreeCount")
+    public R selectTreeCount(@RequestBody CenterdataTForestTrees centerdataTForestTrees) {
         return R.ok(forestBigDataService.selectTreeCount(centerdataTForestTrees));
     }
 }