|
@@ -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()));
|
|
|
}
|
|
|
|