瀏覽代碼

通过body调用

gushoubang 8 月之前
父節點
當前提交
8d1321e790

+ 2 - 5
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/controller/table/TableDataSelectController.java

@@ -5,10 +5,7 @@ import com.onemap.apply.service.table.TableDataSelectService;
 import com.onemap.common.core.web.controller.BaseController;
 import com.onemap.common.core.web.domain.RequestResult;
 import org.springframework.beans.factory.annotation.Autowired;
-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;
+import org.springframework.web.bind.annotation.*;
 
 
 @RestController
@@ -34,7 +31,7 @@ public class TableDataSelectController extends BaseController {
     // }
 
     @PostMapping("/polygon/GetTableData")
-    public RequestResult queryTableListByPolygon(PolygonDataDTO polygonDataDTO) {
+    public RequestResult queryTableListByPolygon(@RequestBody PolygonDataDTO polygonDataDTO) {
         return RequestResult.success(tableDataSelectService.dataQueryByPolygon(polygonDataDTO.getSourceDataId(), polygonDataDTO.getSourcePolygonWkt(), polygonDataDTO.getSourceLayerId(), polygonDataDTO.getSourceLayerType(), polygonDataDTO.getQueryTableId()));
     }