From 013bb5ac2715268593a463778066facbe00f7fee Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Wed, 27 Mar 2024 16:29:00 +0800
Subject: [PATCH] 修改文件存放路径
---
src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java | 4 +++-
1 files changed, 3 insertions(+), 1 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..689f096 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,6 @@
package com.dji.sample.patches.controller;
+import com.dji.sample.common.model.ResponseResult;
import com.dji.sample.patches.service.impl.ShpToDataSourceServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -14,8 +15,9 @@
@Autowired
private ShpToDataSourceServiceImpl shpToDataSourceServiceImpl;
@PostMapping("/getGeo")
- public void getGeo (@RequestParam("file") MultipartFile file) throws IOException {
+ public ResponseResult getGeo (@RequestParam("file") MultipartFile file) throws IOException {
shpToDataSourceServiceImpl.insertGeo(file);
+ return ResponseResult.success();
}
--
Gitblit v1.9.3