From b5f294729bca484a4ce726f4d2a1c096166bc9f2 Mon Sep 17 00:00:00 2001
From: xieb <vip_xiaobin810@163.com>
Date: Mon, 01 Apr 2024 16:27:38 +0800
Subject: [PATCH] 生成航线文件

---
 src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 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 689f096..97e77af 100644
--- a/src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java
+++ b/src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java
@@ -1,6 +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.*;
@@ -8,6 +9,7 @@
 
 
 import java.io.IOException;
+import java.util.List;
 
 @RestController
 @RequestMapping("${url.patches.prefix}${url.patches.version}")
@@ -15,9 +17,9 @@
     @Autowired
     private ShpToDataSourceServiceImpl shpToDataSourceServiceImpl;
     @PostMapping("/getGeo")
-    public ResponseResult getGeo (@RequestParam("file") MultipartFile file) throws IOException {
-        shpToDataSourceServiceImpl.insertGeo(file);
-        return  ResponseResult.success();
+    public ResponseResult<List<LotInfo>> getGeo (@RequestParam("file") MultipartFile file) throws IOException {
+        List<LotInfo> list=shpToDataSourceServiceImpl.insertGeo(file);
+        return  ResponseResult.success(list);
     }
 
 

--
Gitblit v1.9.3