| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?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.TMapObservePointGeoMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.yt.zhylplat.moduleMap.entity.TMapObservePointGeo">
- <id column="id" property="id" />
- <result column="point_properties_id" property="pointPropertiesId" />
- <result column="type" property="type" />
- <result column="point_geo" property="pointGeo" />
- <result column="del_flg" property="delFlg" />
- </resultMap>
- <!-- 通用查询结果列 -->
- <sql id="Base_Column_List">
- id, point_properties_id, type, point_geo, del_flg
- </sql>
- <insert id="saveObservePointGeo">
- insert into T_Map_Observe_Point_Geo(point_properties_id,
- type,
- point_geo,
- del_flg)
- values (#{pointPropertiesId},
- #{type},
- ST_GeomFromText(#{pointGeo}),
- 0)
- </insert>
- <update id="updateObservePointCoordinates">
- update T_Map_Observe_Point_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
- point_properties_id = #{pointPropertiesId}
- </update>
- </mapper>
|