No Description

TMapObservePointGeoMapper.xml 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.TMapObservePointGeoMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.yt.zhylplat.moduleMap.entity.TMapObservePointGeo">
  6. <id column="id" property="id" />
  7. <result column="point_properties_id" property="pointPropertiesId" />
  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, point_properties_id, type, point_geo, del_flg
  15. </sql>
  16. <insert id="saveObservePointGeo">
  17. insert into T_Map_Observe_Point_Geo(point_properties_id,
  18. type,
  19. point_geo,
  20. del_flg)
  21. values (#{pointPropertiesId},
  22. #{type},
  23. ST_GeomFromText(#{pointGeo}),
  24. 0)
  25. </insert>
  26. <update id="updateObservePointCoordinates">
  27. update T_Map_Observe_Point_Geo
  28. <set>
  29. <if test="type != null and type != ''">
  30. type = #{type},
  31. </if>
  32. <if test="pointGeo != null and pointGeo != ''">
  33. point_geo = ST_GeomFromText(#{pointGeo}),
  34. </if>
  35. </set>
  36. where
  37. point_properties_id = #{pointPropertiesId}
  38. </update>
  39. </mapper>