服务器 7 months ago
parent
commit
8f9bc4ca48

+ 1 - 1
onemap-modules/onemap-file/src/main/java/com/onemap/file/service/SaveFileService.java

@@ -7,7 +7,7 @@ import org.springframework.web.multipart.MultipartFile;
 public interface SaveFileService {
     String saveShpFile(String shpPath, String zippath, String fromRoute) throws Exception;
 
-    String saveShpFileNew(String shpPath, String zippath, String fromRoute) throws Exception;
+//    String saveShpFileNew(String shpPath, String zippath, String fromRoute) throws Exception;
 
     String saveDraw(String geom, String fromRoute);
 

+ 19 - 19
onemap-modules/onemap-file/src/main/java/com/onemap/file/service/impl/SaveFileImpl.java

@@ -37,25 +37,25 @@ public class SaveFileImpl implements SaveFileService {
         zhxzFileMapper.saveGeom(geomResourceDTO);
         return uuid;
     }
-
-    @Override
-    @Master
-    public String saveShpFile(String shpPath, String zippath, String fromRoute) throws Exception {
-        String ewkt = WktUtils.getShpWkt(shpPath);
-
-        GeomResourceDTO geomResourceDTO = new GeomResourceDTO();
-
-        String uuid = StringUtils.getUUID();
-        geomResourceDTO.setId(uuid);
-        geomResourceDTO.setZippath(zippath);
-        geomResourceDTO.setFilepath(shpPath);
-        geomResourceDTO.setGeom(ewkt);
-        geomResourceDTO.setFromType(2);
-        geomResourceDTO.setFromRoute(fromRoute);
-
-        zhxzFileMapper.saveGeom(geomResourceDTO);
-        return uuid;
-    }
+//
+//    @Override
+//    @Master
+//    public String saveShpFile(String shpPath, String zippath, String fromRoute) throws Exception {
+//        String ewkt = WktUtils.getShpWkt(shpPath);
+//
+//        GeomResourceDTO geomResourceDTO = new GeomResourceDTO();
+//
+//        String uuid = StringUtils.getUUID();
+//        geomResourceDTO.setId(uuid);
+//        geomResourceDTO.setZippath(zippath);
+//        geomResourceDTO.setFilepath(shpPath);
+//        geomResourceDTO.setGeom(ewkt);
+//        geomResourceDTO.setFromType(2);
+//        geomResourceDTO.setFromRoute(fromRoute);
+//
+//        zhxzFileMapper.saveGeom(geomResourceDTO);
+//        return uuid;
+//    }
 
     @Override
     @Master