| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?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.TMapObservePointPropertiesMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.yt.zhylplat.moduleMap.entity.TMapObservePointProperties">
- <id column="id" property="id" />
- <result column="observe_light_id" property="observeLightId" />
- <result column="observe_point_id" property="observePointId" />
- <result column="observe_point_name" property="observePointName" />
- <result column="remark" property="remark" />
- <result column="create_user_id" property="createUserId" />
- <result column="create_date" property="createDate" />
- <result column="update_user_id" property="updateUserId" />
- <result column="update_date" property="updateDate" />
- <result column="del_flg" property="delFlg" />
- </resultMap>
- <!-- 通用查询结果列 -->
- <sql id="Base_Column_List">
- id, observe_light_id, observe_point_id, observe_point_name, remark, create_user_id, create_date, update_user_id, update_date, del_flg
- </sql>
- <select id="selectTMapObservePointProperties"
- resultType="com.yt.zhylplat.moduleMap.entity.TMapObservePointProperties">
- select
- oop.observe_light_id,
- opg.coordinates as coordinates,
- opg.type as geometryType,
- 'Feature' as type
- from
- T_Map_Observe_Point_Properties oop
- left join
- T_Map_Observe_Point_Geometry opg on oop.id = opg.point_properties_id
- where
- oop.del_flg = 0
- <if test="observePointId != null">
- and oop.observe_point_id = #{observePointId}
- </if>
- <if test="createUserId != null">
- and oop.create_user_id = #{createUserId}
- </if>
- </select>
- </mapper>
|