| | |
| | | |
| | | <!--保存空间信息--> |
| | | <insert id="saveGeoInfo"> |
| | | insert into yw_geom_info (name,type,geom) |
| | | values (#{geomInfoEntity.name},#{geomInfoEntity.type},ST_GeomFromText(${geomInfoEntity.geom})) |
| | | insert into yw_geom_info (name,type,firm_id,geom) |
| | | values (#{geomInfoEntity.name},#{geomInfoEntity.type},#{geomInfoEntity.firmId},ST_GeomFromText(${geomInfoEntity.geom})) |
| | | </insert> |
| | | |
| | | <!--空间信息查询--> |
| | | <select id="getGeomInfoList" resultType="org.springblade.modules.yw.vo.GeomInfoVO"> |
| | | select |
| | | id,name,type,firm_id,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> |