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

---
 src/main/resources/mapper/film/FilmHotCityMapper.xml |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/film/FilmHotCityMapper.xml b/src/main/resources/mapper/film/FilmHotCityMapper.xml
new file mode 100644
index 0000000..4b6b695
--- /dev/null
+++ b/src/main/resources/mapper/film/FilmHotCityMapper.xml
@@ -0,0 +1,27 @@
+<?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.mzl.flower.mapper.film.FilmHotCityMapper">
+
+    <select id="queryPage" resultType="com.mzl.flower.dto.response.film.FilmHotCityVO">
+        SELECT
+        t.*
+        FROM
+        film_hot_city t
+        WHERE
+        t.deleted = 0
+        <if test="dto.name != null and dto.name != ''">
+            AND t.name LIKE concat('%', #{dto.name},'%')
+        </if>
+        <if test="dto.country != null and dto.country != ''">
+            AND t.country LIKE concat('%', #{dto.country},'%')
+        </if>
+        <if test="dto.continent != null and dto.continent != ''">
+            AND t.continent LIKE concat('%', #{dto.continent},'%')
+        </if>
+        <if test="dto.isEnabled!=null">
+            AND t.is_enabled = #{dto.isEnabled}
+        </if>
+        ORDER BY
+        t.city_weight DESC
+    </select>
+</mapper>

--
Gitblit v1.9.3