<?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.FourColorPointMapper" >
|
<resultMap id="BaseResultMap" type="com.gk.hotwork.Domain.FourColorPoint" >
|
<!-- -->
|
<id column="id" property="id" jdbcType="VARCHAR" />
|
<result column="etype" property="etype" jdbcType="INTEGER"/>
|
<result column="shape_type" property="shapeType" jdbcType="VARCHAR"/>
|
<result column="name" property="name" jdbcType="VARCHAR"/>
|
<result column="type" property="type" jdbcType="VARCHAR"/>
|
<result column="text" property="text" jdbcType="VARCHAR"/>
|
<result column="clamp_toground" property="clampToGround" jdbcType="BOOLEAN"/>
|
<result column="color" property="color" jdbcType="VARCHAR"/>
|
<result column="geo_type" property="geoType" jdbcType="VARCHAR"/>
|
</resultMap>
|
<sql id="Base_Column_List" >
|
id,etype,shape_type,name,type,text,clamp_toground,color,geo_type
|
</sql>
|
<select id="findPointListByEtype" resultMap="BaseResultMap">
|
select <include refid="Base_Column_List"/>
|
from four_color_map
|
<where>
|
<if test="etype != null and etype > 0">
|
etype = #{etype}
|
</if>
|
</where>
|
</select>
|
|
</mapper>
|