From 4dc18cd2c9d0c44cf8d84cd4687564f26e294eab Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Fri, 08 Nov 2024 16:32:37 +0800
Subject: [PATCH] shp 文件导入导出完善

---
 src/main/java/org/springblade/modules/yw/mapper/GeomInfoMapper.xml |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/yw/mapper/GeomInfoMapper.xml b/src/main/java/org/springblade/modules/yw/mapper/GeomInfoMapper.xml
index 8c7a923..3d7cc44 100644
--- a/src/main/java/org/springblade/modules/yw/mapper/GeomInfoMapper.xml
+++ b/src/main/java/org/springblade/modules/yw/mapper/GeomInfoMapper.xml
@@ -13,4 +13,18 @@
         values (#{geomInfoEntity.name},#{geomInfoEntity.type},ST_GeomFromText(${geomInfoEntity.geom}))
     </insert>
 
+    <!--自定义分页查询-->
+    <select id="getGeomInfoList" resultType="org.springblade.modules.yw.vo.GeomInfoVO">
+        select
+        id,name,type,ST_ASTEXT (geom) as geom
+        from yw_geom_info ygi
+        where ygi.is_deleted = 0
+        <if test="ids!=null and ids!=''">
+            and ygi.id in
+            <foreach collection="ids.split(',')" item="item" index="index" open="(" separator="," close=")">
+                #{item}
+            </foreach>
+        </if>
+    </select>
+
 </mapper>

--
Gitblit v1.9.3