cloudroam
2025-06-26 2e0e1c5cde0585669334ebc64ff50eae68770726
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?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.FilmLocationMapper">
 
    <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>