|
@@ -108,6 +108,72 @@
|
|
|
|
|
|
|
|
</trim>
|
|
</trim>
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
+ <sql id="no_map_Column_List">
|
|
|
|
|
+ <trim suffixOverrides=",">
|
|
|
|
|
+ id,
|
|
|
|
|
+
|
|
|
|
|
+ del_flag,
|
|
|
|
|
+
|
|
|
|
|
+ update_time,
|
|
|
|
|
+
|
|
|
|
|
+ update_user,
|
|
|
|
|
+
|
|
|
|
|
+ create_time,
|
|
|
|
|
+
|
|
|
|
|
+ create_user,
|
|
|
|
|
+
|
|
|
|
|
+ map_name,
|
|
|
|
|
+
|
|
|
|
|
+ owned_city_id,
|
|
|
|
|
+
|
|
|
|
|
+ map_sprite,
|
|
|
|
|
+
|
|
|
|
|
+ loge_sprite,
|
|
|
|
|
+
|
|
|
|
|
+ open_describe,
|
|
|
|
|
+
|
|
|
|
|
+ mark_describe,
|
|
|
|
|
+
|
|
|
|
|
+ anchor_image_group_name,
|
|
|
|
|
+
|
|
|
|
|
+ default_mode,
|
|
|
|
|
+
|
|
|
|
|
+ vuforia_image_group_id,
|
|
|
|
|
+
|
|
|
|
|
+ vuforia_data_name,
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ map_width,
|
|
|
|
|
+
|
|
|
|
|
+ map_height,
|
|
|
|
|
+
|
|
|
|
|
+ map_rate,
|
|
|
|
|
+
|
|
|
|
|
+ show_in_panel,
|
|
|
|
|
+
|
|
|
|
|
+ longitude,
|
|
|
|
|
+
|
|
|
|
|
+ latitude,
|
|
|
|
|
+
|
|
|
|
|
+ remark1,
|
|
|
|
|
+
|
|
|
|
|
+ remark2,
|
|
|
|
|
+
|
|
|
|
|
+ remark3,
|
|
|
|
|
+
|
|
|
|
|
+ front_level_id,
|
|
|
|
|
+ type_id,
|
|
|
|
|
+ keyword,
|
|
|
|
|
+ power,
|
|
|
|
|
+ ad_image,
|
|
|
|
|
+ map_angle,
|
|
|
|
|
+ add_step,
|
|
|
|
|
+ mark_level,
|
|
|
|
|
+ mark_price,
|
|
|
|
|
+ bus_route,
|
|
|
|
|
+
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ </sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
<include refid="Base_Column_List"/>
|
|
@@ -598,7 +664,199 @@
|
|
|
OR default_mode LIKE concat('%',#{searchKey},'%')
|
|
OR default_mode LIKE concat('%',#{searchKey},'%')
|
|
|
OR vuforia_image_group_id LIKE concat('%',#{searchKey},'%')
|
|
OR vuforia_image_group_id LIKE concat('%',#{searchKey},'%')
|
|
|
OR vuforia_data_name LIKE concat('%',#{searchKey},'%')
|
|
OR vuforia_data_name LIKE concat('%',#{searchKey},'%')
|
|
|
- OR map_info LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
|
|
+ OR map_width LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR map_height LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR map_rate LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR show_in_panel LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR longitude LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR latitude LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR remark1 LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR remark2 LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR remark3 LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR front_level_id LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR keyword LIKE concat('%',#{keyword},'%')
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="advancedQuery != null and !"".equals(advancedQuery)">
|
|
|
|
|
+ <foreach item="item" index="index" collection="advancedQuery.split('_;')">
|
|
|
|
|
+ <choose>
|
|
|
|
|
+ <when test="item.indexOf('like') != -1">
|
|
|
|
|
+ <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
|
|
|
+ <if test="detailIndex == 3">
|
|
|
|
|
+ concat('%',#{itemDetail},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="detailIndex < 3">
|
|
|
|
|
+ ${itemDetail}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </when>
|
|
|
|
|
+ <otherwise>
|
|
|
|
|
+ <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
|
|
|
+ <if test="detailIndex == 3">
|
|
|
|
|
+ #{itemDetail}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="detailIndex < 3">
|
|
|
|
|
+ ${itemDetail}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </otherwise>
|
|
|
|
|
+ </choose>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </where>
|
|
|
|
|
+ order by
|
|
|
|
|
+
|
|
|
|
|
+ <if test="orderByStr != null and !"".equals(orderByStr)">
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <trim suffixOverrides=",">
|
|
|
|
|
+ <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
|
|
|
|
|
+ <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
|
|
|
+ ${itemDetail}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ ,
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ id desc
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <select id="queryAllLandMarkNoMap" parameterType="java.util.Map"
|
|
|
|
|
+ resultType="com.izouma.awesomeadmin.model.LandMark">
|
|
|
|
|
+ select
|
|
|
|
|
+ <include refid="no_map_Column_List"/>
|
|
|
|
|
+ from land_mark
|
|
|
|
|
+ <where>
|
|
|
|
|
+ and del_flag = 'N'
|
|
|
|
|
+ <if test="idStr != null and !"".equals(idStr)">
|
|
|
|
|
+ and id in (${idStr})
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="id != null and !"".equals(id)">
|
|
|
|
|
+ and id = #{id}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
|
|
+ and del_flag = #{delFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null and !"".equals(updateTime)">
|
|
|
|
|
+ and update_time = #{updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateUser != null and !"".equals(updateUser)">
|
|
|
|
|
+ and update_user = #{updateUser}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null and !"".equals(createTime)">
|
|
|
|
|
+ and create_time = #{createTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createUser != null and !"".equals(createUser)">
|
|
|
|
|
+ and create_user = #{createUser}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mapName != null and !"".equals(mapName)">
|
|
|
|
|
+ and map_name = #{mapName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ownedCityId != null and !"".equals(ownedCityId)">
|
|
|
|
|
+ and owned_city_id = #{ownedCityId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mapSprite != null and !"".equals(mapSprite)">
|
|
|
|
|
+ and map_sprite = #{mapSprite}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="logeSprite != null and !"".equals(logeSprite)">
|
|
|
|
|
+ and loge_sprite = #{logeSprite}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="openDescribe != null and !"".equals(openDescribe)">
|
|
|
|
|
+ and open_describe = #{openDescribe}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="markDescribe != null and !"".equals(markDescribe)">
|
|
|
|
|
+ and mark_describe = #{markDescribe}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="anchorImageGroupName != null and !"".equals(anchorImageGroupName)">
|
|
|
|
|
+ and anchor_image_group_name = #{anchorImageGroupName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="defaultMode != null and !"".equals(defaultMode)">
|
|
|
|
|
+ and default_mode = #{defaultMode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vuforiaImageGroupId != null and !"".equals(vuforiaImageGroupId)">
|
|
|
|
|
+ and vuforia_image_group_id = #{vuforiaImageGroupId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vuforiaDataName != null and !"".equals(vuforiaDataName)">
|
|
|
|
|
+ and vuforia_data_name = #{vuforiaDataName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mapInfo != null and !"".equals(mapInfo)">
|
|
|
|
|
+ and map_info = #{mapInfo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mapWidth != null and !"".equals(mapWidth)">
|
|
|
|
|
+ and map_width = #{mapWidth}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mapHeight != null and !"".equals(mapHeight)">
|
|
|
|
|
+ and map_height = #{mapHeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mapRate != null and !"".equals(mapRate)">
|
|
|
|
|
+ and map_rate = #{mapRate}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="showInPanel != null and !"".equals(showInPanel)">
|
|
|
|
|
+ and show_in_panel = #{showInPanel}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="longitude != null and !"".equals(longitude)">
|
|
|
|
|
+ and longitude = #{longitude}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="latitude != null and !"".equals(latitude)">
|
|
|
|
|
+ and latitude = #{latitude}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="remark1 != null and !"".equals(remark1)">
|
|
|
|
|
+ and remark1 = #{remark1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="remark2 != null and !"".equals(remark2)">
|
|
|
|
|
+ and remark2 = #{remark2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="remark3 != null and !"".equals(remark3)">
|
|
|
|
|
+ and remark3 = #{remark3}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeId != null and !"".equals(typeId)">
|
|
|
|
|
+ and type_id = #{type_id}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="keyword != null and !"".equals(keyword)">
|
|
|
|
|
+ and keyword = #{keyword}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="power != null and !"".equals(power)">
|
|
|
|
|
+ and power = #{power}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="areaMapInfo != null and !"".equals(areaMapInfo)">
|
|
|
|
|
+ and area_map_info = #{areaMapInfo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="addStep != null and !"".equals(addStep)">
|
|
|
|
|
+ and add_step = #{addStep}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="addStepStr != null and !"".equals(addStepStr)">
|
|
|
|
|
+ and add_step in (${addStepStr})
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="frontLevelId != null and !"".equals(frontLevelId)">
|
|
|
|
|
+
|
|
|
|
|
+ and (front_level_id = #{frontLevelId}
|
|
|
|
|
+ <if test="'0'.toString()==frontLevelId">
|
|
|
|
|
+ or (front_level_id is null or front_level_id = '')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ )
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="searchKey != null and !"".equals(searchKey)">
|
|
|
|
|
+ <trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
|
|
+ OR map_name LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR owned_city_id LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR map_sprite LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR loge_sprite LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR open_describe LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR mark_describe LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR anchor_image_group_name LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR default_mode LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR vuforia_image_group_id LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR vuforia_data_name LIKE concat('%',#{searchKey},'%')
|
|
|
OR map_width LIKE concat('%',#{searchKey},'%')
|
|
OR map_width LIKE concat('%',#{searchKey},'%')
|
|
|
OR map_height LIKE concat('%',#{searchKey},'%')
|
|
OR map_height LIKE concat('%',#{searchKey},'%')
|
|
|
OR map_rate LIKE concat('%',#{searchKey},'%')
|
|
OR map_rate LIKE concat('%',#{searchKey},'%')
|
|
@@ -878,7 +1136,220 @@
|
|
|
</if>
|
|
</if>
|
|
|
id desc
|
|
id desc
|
|
|
</select>
|
|
</select>
|
|
|
- <select id="queryCityLandMarkByPage" parameterType="java.util.Map" resultMap="AllLandMarkResultMap">
|
|
|
|
|
|
|
+ <select id="queryLandMarkNoMapByPage" parameterType="java.util.Map"
|
|
|
|
|
+ resultType="com.izouma.awesomeadmin.model.LandMark">
|
|
|
|
|
+ select
|
|
|
|
|
+ <include refid="no_map_Column_List"/>
|
|
|
|
|
+ from land_mark
|
|
|
|
|
+ <where>
|
|
|
|
|
+ and del_flag = 'N'
|
|
|
|
|
+ <if test="record.idStr != null and !"".equals(record.idStr)">
|
|
|
|
|
+ and id in (${record.idStr})
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.id != null and !"".equals(record.id)">
|
|
|
|
|
+ and id = #{record.id}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.delFlag != null and !"".equals(record.delFlag)">
|
|
|
|
|
+ and del_flag = #{record.delFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.updateTime != null and !"".equals(record.updateTime)">
|
|
|
|
|
+ and update_time = #{record.updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.updateUser != null and !"".equals(record.updateUser)">
|
|
|
|
|
+ and update_user = #{record.updateUser}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.createTime != null and !"".equals(record.createTime)">
|
|
|
|
|
+ and create_time = #{record.createTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.createUser != null and !"".equals(record.createUser)">
|
|
|
|
|
+ and create_user = #{record.createUser}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.mapName != null and !"".equals(record.mapName)">
|
|
|
|
|
+ and map_name = #{record.mapName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.ownedCityId != null and !"".equals(record.ownedCityId)">
|
|
|
|
|
+ and owned_city_id = #{record.ownedCityId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.mapSprite != null and !"".equals(record.mapSprite)">
|
|
|
|
|
+ and map_sprite = #{record.mapSprite}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.logeSprite != null and !"".equals(record.logeSprite)">
|
|
|
|
|
+ and loge_sprite = #{record.logeSprite}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.openDescribe != null and !"".equals(record.openDescribe)">
|
|
|
|
|
+ and open_describe = #{record.openDescribe}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.markDescribe != null and !"".equals(record.markDescribe)">
|
|
|
|
|
+ and mark_describe = #{record.markDescribe}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.anchorImageGroupName != null and !"".equals(record.anchorImageGroupName)">
|
|
|
|
|
+ and anchor_image_group_name = #{record.anchorImageGroupName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.defaultMode != null and !"".equals(record.defaultMode)">
|
|
|
|
|
+ and default_mode = #{record.defaultMode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.vuforiaImageGroupId != null and !"".equals(record.vuforiaImageGroupId)">
|
|
|
|
|
+ and vuforia_image_group_id = #{record.vuforiaImageGroupId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.vuforiaDataName != null and !"".equals(record.vuforiaDataName)">
|
|
|
|
|
+ and vuforia_data_name = #{record.vuforiaDataName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.mapInfo != null and !"".equals(record.mapInfo)">
|
|
|
|
|
+ and map_info = #{record.mapInfo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.mapWidth != null and !"".equals(record.mapWidth)">
|
|
|
|
|
+ and map_width = #{record.mapWidth}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.mapHeight != null and !"".equals(record.mapHeight)">
|
|
|
|
|
+ and map_height = #{record.mapHeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.mapRate != null and !"".equals(record.mapRate)">
|
|
|
|
|
+ and map_rate = #{record.mapRate}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.showInPanel != null and !"".equals(record.showInPanel)">
|
|
|
|
|
+ and show_in_panel = #{record.showInPanel}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.longitude != null and !"".equals(record.longitude)">
|
|
|
|
|
+ and longitude = #{record.longitude}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.latitude != null and !"".equals(record.latitude)">
|
|
|
|
|
+ and latitude = #{record.latitude}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.remark1 != null and !"".equals(record.remark1)">
|
|
|
|
|
+ and remark1 = #{record.remark1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.remark2 != null and !"".equals(record.remark2)">
|
|
|
|
|
+ and remark2 = #{record.remark2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.remark3 != null and !"".equals(record.remark3)">
|
|
|
|
|
+ and remark3 = #{record.remark3}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.typeId != null and !"".equals(record.typeId)">
|
|
|
|
|
+ and type_id = #{record.typeId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.keyword != null and !"".equals(record.keyword)">
|
|
|
|
|
+ and keyword = #{record.keyword}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.power != null and !"".equals(record.power)">
|
|
|
|
|
+ and power = #{record.power}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.areaMapInfo != null and !"".equals(record.areaMapInfo)">
|
|
|
|
|
+ and area_map_info = #{record.areaMapInfo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.addStep != null and !"".equals(record.addStep)">
|
|
|
|
|
+ and add_step = #{record.addStep}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="record.addStepStr != null and !"".equals(record.addStepStr)">
|
|
|
|
|
+ and add_step in (${record.addStepStr})
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="record.frontLevelId != null and !"".equals(record.frontLevelId)">
|
|
|
|
|
+
|
|
|
|
|
+ and (front_level_id = #{record.frontLevelId}
|
|
|
|
|
+ <if test="'0'.toString()==record.frontLevelId">
|
|
|
|
|
+ or (front_level_id is null or front_level_id = '')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ )
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
|
|
|
+ <trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
|
|
+ OR map_name LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR owned_city_id LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR map_sprite LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR loge_sprite LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR open_describe LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR mark_describe LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR anchor_image_group_name LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR default_mode LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR vuforia_image_group_id LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR vuforia_data_name LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR map_info LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR map_width LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR map_height LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR map_rate LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR show_in_panel LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR longitude LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR latitude LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR remark1 LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR remark2 LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR remark3 LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR front_level_id LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR keyword LIKE concat('%',#{record.keyword},'%')
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="record.advancedQuery != null and !"".equals(record.advancedQuery)">
|
|
|
|
|
+ <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
|
|
|
|
|
+ <choose>
|
|
|
|
|
+ <when test="item.indexOf('like') != -1">
|
|
|
|
|
+ <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
|
|
|
+ <if test="detailIndex == 3">
|
|
|
|
|
+ concat('%',#{itemDetail},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="detailIndex < 3">
|
|
|
|
|
+ ${itemDetail}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </when>
|
|
|
|
|
+ <otherwise>
|
|
|
|
|
+ <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
|
|
|
+ <if test="detailIndex == 3">
|
|
|
|
|
+ #{itemDetail}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="detailIndex < 3">
|
|
|
|
|
+ ${itemDetail}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </otherwise>
|
|
|
|
|
+ </choose>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <if test="record.distance != null and !"".equals(record.distance)">
|
|
|
|
|
+
|
|
|
|
|
+ <![CDATA[
|
|
|
|
|
+ AND ( ACOS(
|
|
|
|
|
+ SIN((#{record.latKey} * PI()) / 180) * SIN((latitude * PI()) / 180) +
|
|
|
|
|
+ COS((#{record.latKey} * PI()) / 180) * COS((latitude * PI()) / 180) * COS(
|
|
|
|
|
+ (#{record.lngKey} * PI()) / 180 - (longitude * PI()) / 180
|
|
|
|
|
+ )
|
|
|
|
|
+ ) * 6371.004 ) <= #{record.distance}
|
|
|
|
|
+ AND longitude > #{record.lngKey} - 3
|
|
|
|
|
+ AND longitude < #{record.lngKey} + 3
|
|
|
|
|
+ AND latitude > #{record.latKey} - 3
|
|
|
|
|
+ AND latitude < #{record.latKey} + 3
|
|
|
|
|
+ ]]>
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </where>
|
|
|
|
|
+ order by
|
|
|
|
|
+
|
|
|
|
|
+ <if test="record.orderByStr != null and !"".equals(record.orderByStr)">
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <trim suffixOverrides=",">
|
|
|
|
|
+ <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
|
|
|
|
|
+ <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
|
|
|
+ ${itemDetail}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ ,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ id desc
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <select id="queryCityLandMarkByPage" parameterType="java.util.Map" resultMap="AllLandMarkResultMap">
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
<include refid="Base_Column_List"/>
|
|
|
, #{record.areaTypeId} as area_type_id
|
|
, #{record.areaTypeId} as area_type_id
|
|
@@ -1006,7 +1477,6 @@
|
|
|
OR default_mode LIKE concat('%',#{record.searchKey},'%')
|
|
OR default_mode LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR vuforia_image_group_id LIKE concat('%',#{record.searchKey},'%')
|
|
OR vuforia_image_group_id LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR vuforia_data_name LIKE concat('%',#{record.searchKey},'%')
|
|
OR vuforia_data_name LIKE concat('%',#{record.searchKey},'%')
|
|
|
- OR map_info LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
OR map_width LIKE concat('%',#{record.searchKey},'%')
|
|
OR map_width LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR map_height LIKE concat('%',#{record.searchKey},'%')
|
|
OR map_height LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR map_rate LIKE concat('%',#{record.searchKey},'%')
|
|
OR map_rate LIKE concat('%',#{record.searchKey},'%')
|
|
@@ -1219,7 +1689,6 @@
|
|
|
OR default_mode LIKE concat('%',#{searchKey},'%')
|
|
OR default_mode LIKE concat('%',#{searchKey},'%')
|
|
|
OR vuforia_image_group_id LIKE concat('%',#{searchKey},'%')
|
|
OR vuforia_image_group_id LIKE concat('%',#{searchKey},'%')
|
|
|
OR vuforia_data_name LIKE concat('%',#{searchKey},'%')
|
|
OR vuforia_data_name LIKE concat('%',#{searchKey},'%')
|
|
|
- OR map_info LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
OR map_width LIKE concat('%',#{searchKey},'%')
|
|
OR map_width LIKE concat('%',#{searchKey},'%')
|
|
|
OR map_height LIKE concat('%',#{searchKey},'%')
|
|
OR map_height LIKE concat('%',#{searchKey},'%')
|
|
|
OR map_rate LIKE concat('%',#{searchKey},'%')
|
|
OR map_rate LIKE concat('%',#{searchKey},'%')
|
|
@@ -1398,6 +1867,119 @@
|
|
|
LIMIT 1
|
|
LIMIT 1
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
+ <select id="queryLandMarkNoMap" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.LandMark">
|
|
|
|
|
+ select
|
|
|
|
|
+ <include refid="no_map_Column_List"/>
|
|
|
|
|
+ from land_mark
|
|
|
|
|
+ <where>
|
|
|
|
|
+ and del_flag = 'N'
|
|
|
|
|
+ <if test="id != null and !"".equals(id)">
|
|
|
|
|
+ and id = #{id}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
|
|
+ and del_flag = #{delFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null and !"".equals(updateTime)">
|
|
|
|
|
+ and update_time = #{updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateUser != null and !"".equals(updateUser)">
|
|
|
|
|
+ and update_user = #{updateUser}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null and !"".equals(createTime)">
|
|
|
|
|
+ and create_time = #{createTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createUser != null and !"".equals(createUser)">
|
|
|
|
|
+ and create_user = #{createUser}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mapName != null and !"".equals(mapName)">
|
|
|
|
|
+ and map_name = #{mapName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ownedCityId != null and !"".equals(ownedCityId)">
|
|
|
|
|
+ and owned_city_id = #{ownedCityId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mapSprite != null and !"".equals(mapSprite)">
|
|
|
|
|
+ and map_sprite = #{mapSprite}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="logeSprite != null and !"".equals(logeSprite)">
|
|
|
|
|
+ and loge_sprite = #{logeSprite}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="openDescribe != null and !"".equals(openDescribe)">
|
|
|
|
|
+ and open_describe = #{openDescribe}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="markDescribe != null and !"".equals(markDescribe)">
|
|
|
|
|
+ and mark_describe = #{markDescribe}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="anchorImageGroupName != null and !"".equals(anchorImageGroupName)">
|
|
|
|
|
+ and anchor_image_group_name = #{anchorImageGroupName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="defaultMode != null and !"".equals(defaultMode)">
|
|
|
|
|
+ and default_mode = #{defaultMode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vuforiaImageGroupId != null and !"".equals(vuforiaImageGroupId)">
|
|
|
|
|
+ and vuforia_image_group_id = #{vuforiaImageGroupId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vuforiaDataName != null and !"".equals(vuforiaDataName)">
|
|
|
|
|
+ and vuforia_data_name = #{vuforiaDataName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mapInfo != null and !"".equals(mapInfo)">
|
|
|
|
|
+ and map_info = #{mapInfo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mapWidth != null and !"".equals(mapWidth)">
|
|
|
|
|
+ and map_width = #{mapWidth}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mapHeight != null and !"".equals(mapHeight)">
|
|
|
|
|
+ and map_height = #{mapHeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mapRate != null and !"".equals(mapRate)">
|
|
|
|
|
+ and map_rate = #{mapRate}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="showInPanel != null and !"".equals(showInPanel)">
|
|
|
|
|
+ and show_in_panel = #{showInPanel}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="longitude != null and !"".equals(longitude)">
|
|
|
|
|
+ and longitude = #{longitude}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="latitude != null and !"".equals(latitude)">
|
|
|
|
|
+ and latitude = #{latitude}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="remark1 != null and !"".equals(remark1)">
|
|
|
|
|
+ and remark1 = #{remark1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="remark2 != null and !"".equals(remark2)">
|
|
|
|
|
+ and remark2 = #{remark2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="remark3 != null and !"".equals(remark3)">
|
|
|
|
|
+ and remark3 = #{remark3}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="frontLevelId != null and !"".equals(frontLevelId)">
|
|
|
|
|
+ and front_level_id = #{frontLevelId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="typeId != null and !"".equals(typeId)">
|
|
|
|
|
+ and type_id = #{type_id}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="keyword != null and !"".equals(keyword)">
|
|
|
|
|
+ and keyword = #{keyword}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="power != null and !"".equals(power)">
|
|
|
|
|
+ and power = #{power}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="areaMapInfo != null and !"".equals(areaMapInfo)">
|
|
|
|
|
+ and area_map_info = #{areaMapInfo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="addStep != null and !"".equals(addStep)">
|
|
|
|
|
+ and add_step = #{addStep}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="addStepStr != null and !"".equals(addStepStr)">
|
|
|
|
|
+ and add_step in (${addStepStr})
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ </where>
|
|
|
|
|
+ LIMIT 1
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
<select id="queryLandMarkMapInfo" parameterType="java.util.Map" resultMap="MapInfoResultMap">
|
|
<select id="queryLandMarkMapInfo" parameterType="java.util.Map" resultMap="MapInfoResultMap">
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List"/>, 'Y' as land_mark_flag
|
|
<include refid="Base_Column_List"/>, 'Y' as land_mark_flag
|