cloudroam
4 天以前 46715d892da947c31f07796fdc79dbbef06677b3
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
<?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>