From 85e37ac89f2d73e899ffff577618e4b55fa0bd66 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Fri, 29 Mar 2024 17:04:17 +0800
Subject: [PATCH] 新增概况信息模块,新增图斑图片查询接口,图斑删除接口
---
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..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,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) throws IOException {
+ List<LotInfo> list=shpToDataSourceServiceImpl.insertGeo(file);
+ return ResponseResult.success(list);
}
--
Gitblit v1.9.3