From c500597c67aa7d708567b969d75f8a5097edb62f Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Wed, 27 Mar 2024 10:12:44 +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