cloudroam
2024-12-27 c885a03818d37dceb22c558b9f23164e1f2ae749
src/main/resources/mapper/sms/SmsTaskDetailMapper.xml
@@ -5,27 +5,9 @@
    <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>