<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="org.springblade.modules.yw.mapper.GeomInfoMapper">
|
|
<!--自定义分页查询-->
|
<select id="selectGeomInfoPage" resultType="org.springblade.modules.yw.vo.GeomInfoVO">
|
select * from yw_geom_info where is_deleted = 0
|
</select>
|
|
<!--保存空间信息-->
|
<insert id="saveGeoInfo">
|
insert into yw_geom_info (name,type,geom)
|
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>
|