From d016b04e9beb8d1cb039188dd979d8805d9aa394 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Tue, 02 Apr 2024 16:31:28 +0800
Subject: [PATCH] Waylinefile新增根据ID修改文件名称,workspace新增根据id查找信息
---
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