<?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.gk.hotwork.Mapper.FourColorPointCoordMapper" >
|
<resultMap id="BaseResultMap" type="com.gk.hotwork.Domain.FourColorPointCoord" >
|
<!-- -->
|
<id column="id" property="id" jdbcType="BIGINT" />
|
<result column="point_id" property="pointId" jdbcType="VARCHAR"/>
|
<result column="lon" property="lon" jdbcType="FLOAT"/>
|
<result column="lat" property="lat" jdbcType="FLOAT"/>
|
<result column="hei" property="hei" jdbcType="FLOAT"/>
|
</resultMap>
|
<sql id="Base_Column_List" >
|
id,point_id,lon,lat,hei
|
</sql>
|
<select id="findCoordListByPointId" resultMap="BaseResultMap">
|
select <include refid="Base_Column_List"/>
|
from four_color_map_coord
|
<where>
|
<if test="pointId != null and pointId != ''">
|
point_id = #{pointId}
|
</if>
|
</where>
|
</select>
|
|
</mapper>
|