From 0de01eba0bde756a1c4fec13615fe92b2cf51db3 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Mon, 25 Mar 2024 18:46:39 +0800
Subject: [PATCH] 图斑
---
src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/main/java/com/dji/sample/patches/controller/DemoController.java b/src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java
similarity index 66%
rename from src/main/java/com/dji/sample/patches/controller/DemoController.java
rename to src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java
index 12a4845..3de9dc6 100644
--- a/src/main/java/com/dji/sample/patches/controller/DemoController.java
+++ b/src/main/java/com/dji/sample/patches/controller/ShpToDataSourceController.java
@@ -1,23 +1,21 @@
package com.dji.sample.patches.controller;
-import com.dji.sample.patches.service.impl.DemoServiceImpl;
+import com.dji.sample.patches.service.impl.ShpToDataSourceServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
-import java.io.File;
-
import java.io.IOException;
@RestController
@RequestMapping("${url.patches.prefix}${url.patches.version}")
-public class DemoController {
+public class ShpToDataSourceController {
@Autowired
- private DemoServiceImpl demoServiceImpl;
+ private ShpToDataSourceServiceImpl shpToDataSourceServiceImpl;
@PostMapping("/getGeo")
public void getGeo (@RequestParam("file") MultipartFile file) throws IOException {
- demoServiceImpl.insertGeo(file);
+ shpToDataSourceServiceImpl.insertGeo(file);
}
--
Gitblit v1.9.3