`id`,`tenant_id`,`merchant_id`,`coupon_id`,`type`,`title`,`send_type`,`status`,`send_start_time`,`send_end_time`,`create_date`,`update_date` where 1 = 1 and `id` = #{id} and `tenant_id` like concat('%', #{tenantId},'%') and `merchant_id` = #{merchantId} and `coupon_id` = #{couponId} and `type` = #{type} and `title` like concat('%', #{title},'%') and `send_type` = #{sendType} and `status` = #{status} and `send_start_time` = #{sendStartTime} and `send_end_time` = #{sendEndTime} and `send_end_time` >= NOW() and `send_start_time` <= NOW() and `create_date` = #{createDate} and `update_date` = #{updateDate} and id in #{idItem} order by ${sortColumns}