From 46715d892da947c31f07796fdc79dbbef06677b3 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期一, 14 七月 2025 09:53:19 +0800
Subject: [PATCH] add:定时任务配置,热门城市

---
 src/main/resources/mapper/film/FilmLocationMapper.xml |   54 +++++++++++++++++++++++++-----------------------------
 1 files changed, 25 insertions(+), 29 deletions(-)

diff --git a/src/main/resources/mapper/film/FilmLocationMapper.xml b/src/main/resources/mapper/film/FilmLocationMapper.xml
index b4e3033..011a66a 100644
--- a/src/main/resources/mapper/film/FilmLocationMapper.xml
+++ b/src/main/resources/mapper/film/FilmLocationMapper.xml
@@ -2,33 +2,29 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.mzl.flower.mapper.film.FilmLocationMapper">
 
-    <!-- 通用查询映射结果 -->
-    <resultMap id="BaseResultMap" type="com.mzl.flower.entity.film.FilmLocation">
-        <id column="id" property="id" />
-        <result column="create_time" property="createTime" />
-        <result column="update_time" property="updateTime" />
-        <result column="film_id" property="filmId" />
-        <result column="location_name" property="locationName" />
-        <result column="address" property="address" />
-        <result column="gps_lat" property="gpsLat" />
-        <result column="gps_lng" property="gpsLng" />
-        <result column="start_date" property="startDate" />
-        <result column="end_date" property="endDate" />
-        <result column="scene_type" property="sceneType" />
-        <result column="classic_scene" property="classicScene" />
-        <result column="is_open_visit" property="isOpenVisit" />
-        <result column="visit_info" property="visitInfo" />
-        <result column="landmark_desc" property="landmarkDesc" />
-        <result column="transport_guide" property="transportGuide" />
-        <result column="parking_info" property="parkingInfo" />
-        <result column="surrounding_facilities" property="surroundingFacilities" />
-        <result column="ar_entry" property="arEntry" />
-        <result column="status" property="status" />
-        <result column="deleted" property="deleted" />
-        <result column="create_by" property="createBy" />
-        <result column="update_by" property="updateBy" />
-        <result column="checkin_count" property="checkinCount" />
-        <result column="visitor_photos" property="visitorPhotos" />
-    </resultMap>
-
+    <select id="queryPage" resultType="com.mzl.flower.dto.response.film.FilmLocationVO">
+        SELECT
+        t.*
+        FROM
+        film_location t
+        WHERE
+        t.deleted = 0
+        <if test="dto.locationName != null and dto.locationName != ''">
+            AND t.location_name LIKE concat('%', #{dto.locationName},'%')
+        </if>
+        <if test="dto.province != null and dto.province != ''">
+            AND t.province LIKE concat('%', #{dto.province},'%')
+        </if>
+        <if test="dto.city != null and dto.city != ''">
+            AND t.city LIKE concat('%', #{dto.city},'%')
+        </if>
+        <if test="dto.region != null and dto.region != ''">
+            AND t.region LIKE concat('%', #{dto.region},'%')
+        </if>
+        <if test="dto.isEnabled!=null">
+            AND t.is_enabled = #{dto.isEnabled}
+        </if>
+        ORDER BY
+        t.location_weight DESC
+    </select>
 </mapper>

--
Gitblit v1.9.3