| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?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.TMapSectionPolygonGeoMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.yt.zhylplat.moduleMap.entity.TMapSectionPolygonGeo">
- <id column="id" property="id"/>
- <result column="section_id" property="sectionId"/>
- <result column="type" property="type"/>
- <result column="polygon_geo" property="polygonGeo"/>
- <result column="del_flg" property="delFlg"/>
- </resultMap>
- <!-- 通用查询结果列 -->
- <sql id="Base_Column_List">
- id, section_id, type, polygon_geo, del_flg
- </sql>
- <insert id="insertSectionPolygonGeo" parameterType="com.yt.zhylplat.moduleMap.entity.TMapSectionPolygonGeo">
- insert into T_Map_Section_Polygon_Geo(section_id,
- type,
- polygon_geo,
- multi_polygon_geo)
- values (#{sectionId},
- #{type},
- POLYGONFROMTEXT(#{polygonGeo}),
- null)
- </insert>
- <insert id="insertSectionMultiPolygonGeo" parameterType="com.yt.zhylplat.moduleMap.entity.TMapSectionPolygonGeo">
- insert into T_Map_Section_Polygon_Geo(section_id,
- type,
- polygon_geo,
- multi_polygon_geo)
- values (#{sectionId},
- #{type},
- null,
- MULTIPOLYGONFROMTEXT(#{multiPolygonGeo}))
- </insert>
- <update id="updateSectionPolygonGeo" parameterType="com.yt.zhylplat.moduleMap.entity.TMapSectionPolygonGeo">
- update T_Map_Section_Polygon_Geo
- set type=#{type},
- polygon_geo=POLYGONFROMTEXT(#{polygonGeo})
- where id = #{id}
- </update>
- <update id="updateSectionMultiPolygonGeo" parameterType="com.yt.zhylplat.moduleMap.entity.TMapSectionPolygonGeo">
- update T_Map_Section_Polygon_Geo
- set type=#{type},
- polygon_geo=null,
- multi_polygon_geo=MULTIPOLYGONFROMTEXT(#{multiPolygonGeo})
- where id = #{id}
- </update>
- </mapper>
|