Нет описания

TMapSectionPolygonGeoMapper.xml 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.TMapSectionPolygonGeoMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.yt.zhylplat.moduleMap.entity.TMapSectionPolygonGeo">
  6. <id column="id" property="id"/>
  7. <result column="section_id" property="sectionId"/>
  8. <result column="type" property="type"/>
  9. <result column="polygon_geo" property="polygonGeo"/>
  10. <result column="del_flg" property="delFlg"/>
  11. </resultMap>
  12. <!-- 通用查询结果列 -->
  13. <sql id="Base_Column_List">
  14. id, section_id, type, polygon_geo, del_flg
  15. </sql>
  16. <insert id="insertSectionPolygonGeo" parameterType="com.yt.zhylplat.moduleMap.entity.TMapSectionPolygonGeo">
  17. insert into T_Map_Section_Polygon_Geo(section_id,
  18. type,
  19. polygon_geo,
  20. multi_polygon_geo)
  21. values (#{sectionId},
  22. #{type},
  23. POLYGONFROMTEXT(#{polygonGeo}),
  24. null)
  25. </insert>
  26. <insert id="insertSectionMultiPolygonGeo" parameterType="com.yt.zhylplat.moduleMap.entity.TMapSectionPolygonGeo">
  27. insert into T_Map_Section_Polygon_Geo(section_id,
  28. type,
  29. polygon_geo,
  30. multi_polygon_geo)
  31. values (#{sectionId},
  32. #{type},
  33. null,
  34. MULTIPOLYGONFROMTEXT(#{multiPolygonGeo}))
  35. </insert>
  36. <update id="updateSectionPolygonGeo" parameterType="com.yt.zhylplat.moduleMap.entity.TMapSectionPolygonGeo">
  37. update T_Map_Section_Polygon_Geo
  38. set type=#{type},
  39. polygon_geo=POLYGONFROMTEXT(#{polygonGeo})
  40. where id = #{id}
  41. </update>
  42. <update id="updateSectionMultiPolygonGeo" parameterType="com.yt.zhylplat.moduleMap.entity.TMapSectionPolygonGeo">
  43. update T_Map_Section_Polygon_Geo
  44. set type=#{type},
  45. polygon_geo=null,
  46. multi_polygon_geo=MULTIPOLYGONFROMTEXT(#{multiPolygonGeo})
  47. where id = #{id}
  48. </update>
  49. </mapper>