|  |  |  | 
|---|
|  |  |  | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | 
|---|
|  |  |  | <mapper namespace="com.mzl.flower.mapper.content.AnnouncementMapper"> | 
|---|
|  |  |  | <select id="queryPage" resultType="com.mzl.flower.dto.response.content.AnnouncementDTO"> | 
|---|
|  |  |  | select * from t_announcement t where t.deleted= 0 | 
|---|
|  |  |  | select t.id,t.title,t.cover,t.publish_date,t.status,t.create_time,t.update_time,t.type from t_announcement t where t.deleted= 0 | 
|---|
|  |  |  | <if test="dto.title != null and dto.title != ''"> | 
|---|
|  |  |  | and t.title like concat('%', #{dto.title}, '%') | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | <select id="queryList" resultType="com.mzl.flower.dto.response.content.AnnouncementDTO" | 
|---|
|  |  |  | parameterType="com.mzl.flower.dto.request.content.QueryAnnouncementDTO"> | 
|---|
|  |  |  | select * from t_announcement t where t.deleted= 0 | 
|---|
|  |  |  | select t.id,t.title,t.cover,t.publish_date,t.status,t.create_time,t.update_time,t.type  from t_announcement t where t.deleted= 0 | 
|---|
|  |  |  | <if test="dto.title != null and dto.title != ''"> | 
|---|
|  |  |  | and t.title like concat('%', #{dto.title}, '%') | 
|---|
|  |  |  | </if> | 
|---|