<?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.SmsTaskDetailMapper">
|
|
<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>
|
<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>
|