From 6392e2a39c07d13066a115e294a87a8cce1cb11e Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期二, 29 七月 2025 16:49:04 +0800 Subject: [PATCH] add: --- src/main/resources/mapper/film/FilmCollectsMapper.xml | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/film/FilmCollectsMapper.xml b/src/main/resources/mapper/film/FilmCollectsMapper.xml index bd18a86..5a133ca 100644 --- a/src/main/resources/mapper/film/FilmCollectsMapper.xml +++ b/src/main/resources/mapper/film/FilmCollectsMapper.xml @@ -2,4 +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.FilmCollectsMapper"> + <select id="queryPage" resultType="com.mzl.flower.dto.response.film.FilmCollectsVO"> + 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