| | |
| | | <select id="queryPage" resultType="com.mzl.flower.dto.response.sms.SmsTaskDetailVO"> |
| | | select t.* from t_sms_task_detail t |
| | | where t.deleted= 0 |
| | | <if test="dto.id!=null "> |
| | | and t.id = #{dto.id} |
| | | <if test="dto.smsTaskId!=null "> |
| | | and t.sms_task_id = #{dto.smsTaskId} |
| | | </if> |
| | | <if test="dto.result != null and dto.result != ''"> |
| | | and t.result like concat('%', #{dto.result}, '%') |
| | | </if> |
| | | <if test="dto.phone != null and dto.phone != ''"> |
| | | and t.phone like concat('%', #{dto.phone}, '%') |
| | | </if> |
| | | |
| | | <if test="dto.startDate!=null "> |
| | | <![CDATA[ |
| | | AND t.create_time >= #{dto.startDate} |
| | | ]]> |
| | | </if> |
| | | <if test="dto.endDate!=null "> |
| | | <![CDATA[ |
| | | AND t.create_time <= #{dto.endDate} |
| | | ]]> |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | </mapper> |