Browse Source

导出shp

chenendian 1 month ago
parent
commit
626d5ff280

+ 5 - 1
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/NodeLandImpl.java

@@ -91,7 +91,11 @@ public class NodeLandImpl implements NodeLandService {
             response.put("geomDbId", result.get("geomDbId"));
             response.put("geomDbId", result.get("geomDbId"));
 
 
             // 添加shppath - SHP文件路径
             // 添加shppath - SHP文件路径
-            response.put("shppath", result.get("shppath"));
+            //response.put("shppath", result.get("shppath"));
+            String shpPath = (String) result.get("shppath");
+            // 匹配最后一段 \xxx\xxx.shp 替换为 .zip
+            String zipPath = shpPath.replaceAll("\\\\[^\\\\]+\\\\[^\\\\.]+\\.shp$", ".zip");
+            response.put("shppath", zipPath);
 
 
             // 处理geomIds - 转换为字符串数组
             // 处理geomIds - 转换为字符串数组
             String geomIdsStr = result.get("geomIds");
             String geomIdsStr = result.get("geomIds");

+ 1 - 1
siwei-modules/siwei-apply/src/main/resources/mapper/cadastre/CadastreFileMapper.xml

@@ -302,7 +302,7 @@
         <if test="ywh != null and ywh != ''">
         <if test="ywh != null and ywh != ''">
             and ${ywh}
             and ${ywh}
         </if>
         </if>
-        LIMIT 10000
+        LIMIT 100
     </select>
     </select>