huangxingxing 5 tháng trước cách đây
mục cha
commit
4fde37c814

+ 3 - 6
src/main/java/com/miniframe/mdo/controller/GeoInfoExtractController.java

@@ -13,10 +13,7 @@ import com.miniframe.model.system.dao.SysFileMapper;
 import com.miniframe.tools.XIFileUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.util.ResourceUtils;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import java.io.File;
 import java.util.HashMap;
@@ -28,8 +25,8 @@ public class GeoInfoExtractController {
     @Autowired
     private FileProcessorFactory fileProcessorFactory;
 
-    @RequestMapping("/getXyz/{fid}")
-    public Map<String, Object> getXyz(@PathVariable("fid") String fid) throws Exception {
+    @RequestMapping("/getXyz")
+    public Map<String, Object> getXyz(@RequestParam("fid") String fid) throws Exception {
         Map<String, Object> result = new HashMap<>();
         SysFileMapper sysFileDAO = UtilTools.getBean(SysFileMapper.class);
         SysFile sysFile = sysFileDAO.selectByPrimaryKey(fid);