<?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>
|