From 35cb086a6e05bf0b6e2a6831330fbcd2c740eba7 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Mon, 01 Apr 2024 20:44:21 +0800
Subject: [PATCH] 修改workspaceId

---
 src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java b/src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java
index 3de9dc6..3ee3772 100644
--- a/src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java
+++ b/src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java
@@ -1,5 +1,7 @@
 package com.dji.sample.patches.controller;
 
+import com.dji.sample.common.model.ResponseResult;
+import com.dji.sample.patches.model.entity.LotInfo;
 import com.dji.sample.patches.service.impl.ShpToDataSourceServiceImpl;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
@@ -7,6 +9,7 @@
 
 
 import java.io.IOException;
+import java.util.List;
 
 @RestController
 @RequestMapping("${url.patches.prefix}${url.patches.version}")
@@ -14,8 +17,9 @@
     @Autowired
     private ShpToDataSourceServiceImpl shpToDataSourceServiceImpl;
     @PostMapping("/getGeo")
-    public void getGeo (@RequestParam("file") MultipartFile file) throws IOException {
-        shpToDataSourceServiceImpl.insertGeo(file);
+    public ResponseResult<List<LotInfo>> getGeo (@RequestParam("file") MultipartFile file,@RequestParam String workspaceId) throws IOException {
+        List<LotInfo> list=shpToDataSourceServiceImpl.insertGeo(file,workspaceId);
+        return  ResponseResult.success(list);
     }
 
 

--
Gitblit v1.9.3