Açıklama Yok

TMapObservePointPropertiesMapper.xml 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.TMapObservePointPropertiesMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.yt.zhylplat.moduleMap.entity.TMapObservePointProperties">
  6. <id column="id" property="id" />
  7. <result column="observe_light_id" property="observeLightId" />
  8. <result column="observe_point_id" property="observePointId" />
  9. <result column="observe_point_name" property="observePointName" />
  10. <result column="remark" property="remark" />
  11. <result column="create_user_id" property="createUserId" />
  12. <result column="create_date" property="createDate" />
  13. <result column="update_user_id" property="updateUserId" />
  14. <result column="update_date" property="updateDate" />
  15. <result column="del_flg" property="delFlg" />
  16. </resultMap>
  17. <!-- 通用查询结果列 -->
  18. <sql id="Base_Column_List">
  19. id, observe_light_id, observe_point_id, observe_point_name, remark, create_user_id, create_date, update_user_id, update_date, del_flg
  20. </sql>
  21. <select id="selectTMapObservePointProperties"
  22. resultType="com.yt.zhylplat.moduleMap.entity.TMapObservePointProperties">
  23. select
  24. oop.observe_light_id,
  25. opg.coordinates as coordinates,
  26. opg.type as geometryType,
  27. 'Feature' as type
  28. from
  29. T_Map_Observe_Point_Properties oop
  30. left join
  31. T_Map_Observe_Point_Geometry opg on oop.id = opg.point_properties_id
  32. where
  33. oop.del_flg = 0
  34. <if test="observePointId != null">
  35. and oop.observe_point_id = #{observePointId}
  36. </if>
  37. <if test="createUserId != null">
  38. and oop.create_user_id = #{createUserId}
  39. </if>
  40. </select>
  41. </mapper>