rain
2024-03-27 6e72f5dbd8c85c48d6359e972e8ae41dfd6c6d93
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();
    }