| 12345678910111213141516171819202122232425262728293031 |
- <?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.sqx.modules.errand.dao.TbIndentSmsSendLogDao">
- <select id="logPage" resultType="com.sqx.modules.errand.IndentSmsSendLogVO">
- select
- issl.*, o.delivery_imgs as imgs
- from
- tb_indent_sms_send_log issl
- left join tb_indent i on i.indent_id = issl.order_id
- left join tb_order o on o.order_id = i.order_id
- <where>
- <if test="query.orderId != null">
- and issl.order_id = #{query.orderId}
- </if>
- <if test="query.successFlag != null and query.successFlag != ''">
- and issl.success_flag = #{query.successFlag}
- </if>
- <if test="query.sendTo != null and query.sendTo != ''">
- and issl.send_to = #{query.sendTo}
- </if>
- <if test="query.startTime != null">
- and issl.send_time >= #{query.orderId}
- </if>
- <if test="query.endTime != null">
- and issl.send_time <![CDATA[<=]]> #{query.orderId}
- </if>
- </where>
- order by issl.send_time desc
- </select>
- </mapper>
|