From 97082b60eb2fbccb66f7f0beefb5cb591448ec10 Mon Sep 17 00:00:00 2001
From: xieb <vip_xiaobin810@163.com>
Date: Mon, 01 Apr 2024 15:55:32 +0800
Subject: [PATCH] 升级版本1.9.0
---
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