| | |
| | | <mapper namespace="com.mzl.flower.mapper.film.FilmWorksMapper"> |
| | | |
| | | <select id="queryPage" resultType="com.mzl.flower.dto.response.film.FilmWorksVO"> |
| | | select t.* from film_works t where t.deleted= 0 |
| | | SELECT |
| | | t.*, |
| | | c.name AS nickname, |
| | | c.cover AS avatar |
| | | FROM |
| | | film_works t |
| | | LEFT JOIN |
| | | t_customer_info c |
| | | ON |
| | | t.create_by = c.user_id |
| | | WHERE |
| | | t.deleted = 0 |
| | | <if test="dto.nameCn != null and dto.nameCn != ''"> |
| | | and t.name_cn like concat('%', #{dto.nameCn}, '%') |
| | | AND t.name_cn LIKE CONCAT('%', #{dto.nameCn}, '%') |
| | | </if> |
| | | <if test="dto.status != null and dto.status != ''"> |
| | | and t.status = #{dto.status} |
| | | AND t.status = #{dto.status} |
| | | </if> |
| | | <if test="dto.type != null and dto.type != ''"> |
| | | and t.type = #{dto.type} |
| | | AND t.type = #{dto.type} |
| | | </if> |
| | | <if test="dto.classify != null and dto.classify != ''"> |
| | | and t.classify = #{dto.classify} |
| | | AND t.classify = #{dto.classify} |
| | | </if> |
| | | <if test="dto.createDateBegin!=null "> |
| | | <![CDATA[ |
| | |
| | | AND t.create_time <= #{dto.createDateEnd} |
| | | ]]> |
| | | </if> |
| | | order by t.update_time desc |
| | | ORDER BY |
| | | t.update_time DESC |
| | | </select> |
| | | |
| | | </mapper> |