|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<resultMap type="Marker" id="MarkerResult">
|
|
<resultMap type="Marker" id="MarkerResult">
|
|
<result property="markerId" column="marker_id" />
|
|
<result property="markerId" column="marker_id" />
|
|
<result property="markerName" column="marker_name" />
|
|
<result property="markerName" column="marker_name" />
|
|
|
|
+ <result property="markerType" column="marker_type" />
|
|
<result property="address" column="address" />
|
|
<result property="address" column="address" />
|
|
<result property="showPictures" column="show_pictures" />
|
|
<result property="showPictures" column="show_pictures" />
|
|
<result property="iconPictures" column="icon_pictures" />
|
|
<result property="iconPictures" column="icon_pictures" />
|
|
@@ -22,13 +23,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMarkerVo">
|
|
<sql id="selectMarkerVo">
|
|
- select marker_id, marker_name, address, show_pictures, icon_pictures, lat, lng, label_text, business_hours, shape_type, location_set, radius, brief_content, content from t_marker
|
|
|
|
|
|
+ select marker_id, marker_name, marker_type, address, show_pictures, icon_pictures, lat, lng, label_text, business_hours, shape_type, location_set, radius, brief_content, content from t_marker
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectMarkerList" parameterType="Marker" resultMap="MarkerResult">
|
|
<select id="selectMarkerList" parameterType="Marker" resultMap="MarkerResult">
|
|
<include refid="selectMarkerVo"/>
|
|
<include refid="selectMarkerVo"/>
|
|
<where>
|
|
<where>
|
|
<if test="markerName != null and markerName != ''"> and marker_name like concat('%', #{markerName}, '%')</if>
|
|
<if test="markerName != null and markerName != ''"> and marker_name like concat('%', #{markerName}, '%')</if>
|
|
|
|
+ <if test="markerType != null and markerType != ''"> and marker_type = #{markerType}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -42,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="markerId != null">marker_id,</if>
|
|
<if test="markerId != null">marker_id,</if>
|
|
<if test="markerName != null">marker_name,</if>
|
|
<if test="markerName != null">marker_name,</if>
|
|
|
|
+ <if test="markerType != null">marker_type,</if>
|
|
<if test="address != null">address,</if>
|
|
<if test="address != null">address,</if>
|
|
<if test="showPictures != null">show_pictures,</if>
|
|
<if test="showPictures != null">show_pictures,</if>
|
|
<if test="iconPictures != null">icon_pictures,</if>
|
|
<if test="iconPictures != null">icon_pictures,</if>
|
|
@@ -58,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="markerId != null">#{markerId},</if>
|
|
<if test="markerId != null">#{markerId},</if>
|
|
<if test="markerName != null">#{markerName},</if>
|
|
<if test="markerName != null">#{markerName},</if>
|
|
|
|
+ <if test="markerType != null">#{markerType},</if>
|
|
<if test="address != null">#{address},</if>
|
|
<if test="address != null">#{address},</if>
|
|
<if test="showPictures != null">#{showPictures},</if>
|
|
<if test="showPictures != null">#{showPictures},</if>
|
|
<if test="iconPictures != null">#{iconPictures},</if>
|
|
<if test="iconPictures != null">#{iconPictures},</if>
|
|
@@ -77,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
update t_marker
|
|
update t_marker
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="markerName != null">marker_name = #{markerName},</if>
|
|
<if test="markerName != null">marker_name = #{markerName},</if>
|
|
|
|
+ <if test="markerType != null">marker_type = #{markerType},</if>
|
|
<if test="address != null">address = #{address},</if>
|
|
<if test="address != null">address = #{address},</if>
|
|
<if test="showPictures != null">show_pictures = #{showPictures},</if>
|
|
<if test="showPictures != null">show_pictures = #{showPictures},</if>
|
|
<if test="iconPictures != null">icon_pictures = #{iconPictures},</if>
|
|
<if test="iconPictures != null">icon_pictures = #{iconPictures},</if>
|