`id`,`tenant_id`,`name`,`m_user_id`,`send_type`,`coupon_id`,`coupon_name`,`send_time`,`send_amount`,`status`,`error_msg`,`tags`,`model_id`,`create_time`,`update_time` where 1 = 1 and `id` = #{id} and `tenant_id` like concat('%', #{tenantId},'%') and `name` like concat('%', #{name},'%') and `m_user_id` like concat('%', #{mUserId},'%') and `send_type` = #{sendType} and `coupon_id` = #{couponId} and `coupon_name` like concat('%', #{couponName},'%') and `send_time` = #{sendTime} and `send_time` >= #{sendTimeStart} and `send_time` <= #{sendTimeEnd} and `send_amount` = #{sendAmount} and `status` = #{status} and `error_msg` like concat('%', #{errorMsg},'%') and `tags` like concat('%', #{tags},'%') and `create_time` = #{createTime} and `update_time` = #{updateTime} and id in #{idItem} order by ${sortColumns}