| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?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="com.yt.zhylplat.moduleMap.mapper.TMapAttractionsFlowersGeoMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.yt.zhylplat.moduleMap.entity.TMapAttractionsFlowersGeo">
- <id column="id" property="id"/>
- <result column="attractions_flowers_id" property="attractionsFlowersId"/>
- <result column="type" property="type"/>
- <result column="point_geo" property="pointGeo"/>
- <result column="del_flg" property="delFlg"/>
- </resultMap>
- <!-- 通用查询结果列 -->
- <sql id="Base_Column_List">
- id, attractions_flowers_id, type, point_geo, del_flg
- </sql>
- <insert id="saveTMapAttractionsFlowersGeoByEntity"
- parameterType="com.yt.zhylplat.moduleMap.entity.TMapAttractionsFlowersGeo">
- insert into T_Map_Attractions_Flowers_Geo(attractions_flowers_id,
- type,
- point_geo,
- del_flg)
- values (#{attractionsFlowersId},
- #{type},
- ST_GeomFromText(#{pointGeo}),
- 0)
- </insert>
- <update id="updateAttractionsFlowersCoordinates" parameterType="com.yt.zhylplat.moduleMap.entity.TMapAttractionsFlowersGeo">
- update T_Map_Attractions_Flowers_Geo
- <set>
- <if test="type != null and type != ''">
- type = #{type},
- </if>
- <if test="pointGeo != null and pointGeo != ''">
- point_geo = ST_GeomFromText(#{pointGeo}),
- </if>
- </set>
- where
- attractions_flowers_id = #{attractionsFlowersId}
- </update>
- </mapper>
|