`id`,`tenant_id`,`batch_no`,`phone`,`begintime`,`endtime`,`status`,`status_msg`,`sign`,`createtime`,`updatetime`,`msg_id`,`callback_id`,`business_id`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `batch_no` like concat('%', #{batchNo},'%')
and `phone` like concat('%', #{phone},'%')
and `begintime` = #{begintime}
and `endtime` = #{endtime}
and `status` = #{status}
and `status_msg` like concat('%', #{statusMsg},'%')
and `sign` like concat('%', #{sign},'%')
and `createtime` = #{createtime}
and id in
#{idItem}
order by ${sortColumns}