<?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="cn.roadm.mapper.ResendMapper">

    <select id="queryResendList" resultType="java.util.Map">
        select concat('',taskId) as taskId,mdn,channelId,resend_channelId,callmdn,stat_desc,arrive_time from sms_arrive_resend
        <where>
            <foreach collection="list" item="item" index="index" separator="or">
                taskId=${item.taskId} and mdn=${item.mdn}
            </foreach>
        </where>
        order by taskId desc , CREATE_TIME desc
    </select>
</mapper>