Нет описания

TMapAttractionsFlowersGeoMapper.xml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.yt.zhylplat.moduleMap.mapper.TMapAttractionsFlowersGeoMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.yt.zhylplat.moduleMap.entity.TMapAttractionsFlowersGeo">
  6. <id column="id" property="id"/>
  7. <result column="attractions_flowers_id" property="attractionsFlowersId"/>
  8. <result column="type" property="type"/>
  9. <result column="point_geo" property="pointGeo"/>
  10. <result column="del_flg" property="delFlg"/>
  11. </resultMap>
  12. <!-- 通用查询结果列 -->
  13. <sql id="Base_Column_List">
  14. id, attractions_flowers_id, type, point_geo, del_flg
  15. </sql>
  16. <insert id="saveTMapAttractionsFlowersGeoByEntity"
  17. parameterType="com.yt.zhylplat.moduleMap.entity.TMapAttractionsFlowersGeo">
  18. insert into T_Map_Attractions_Flowers_Geo(attractions_flowers_id,
  19. type,
  20. point_geo,
  21. del_flg)
  22. values (#{attractionsFlowersId},
  23. #{type},
  24. ST_GeomFromText(#{pointGeo}),
  25. 0)
  26. </insert>
  27. <update id="updateAttractionsFlowersCoordinates" parameterType="com.yt.zhylplat.moduleMap.entity.TMapAttractionsFlowersGeo">
  28. update T_Map_Attractions_Flowers_Geo
  29. <set>
  30. <if test="type != null and type != ''">
  31. type = #{type},
  32. </if>
  33. <if test="pointGeo != null and pointGeo != ''">
  34. point_geo = ST_GeomFromText(#{pointGeo}),
  35. </if>
  36. </set>
  37. where
  38. attractions_flowers_id = #{attractionsFlowersId}
  39. </update>
  40. </mapper>