zrj
2024-11-08 4dc18cd2c9d0c44cf8d84cd4687564f26e294eab
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>