o.`id`,o.`tenant_id`,o.`parent_tenant_id`,o.`c_user_id`,o.`product_id`,o.`type`,o.`payment_type`,o.`payment`, o.`payment_time`,o.`order_status`,o.`create_date`,o.`update_date`, u.`nick_name`,u.`phone`, c.`title` product_title,c.`coverImg` product_pic, m.`name` author,m.`imgUrl` author_pic where 1 = 1 and o.`id` = #{id} and o.`tenant_id` = #{tenantId} and o.`parent_tenant_id` = #{parentTenantId} and o.`c_user_id` = #{cUserId} and o.`product_id` = #{productId} and o.`type` = #{type} and o.`payment_type` = #{paymentType} and o.`payment_time` >= #{startdate} and o.`payment_time` <= #{enddate} and o.`order_status` = #{orderStatus} and u.`nick_name` like concat('%', #{nickName},'%') and u.`phone` like concat('%', #{phone},'%') and c.`title` like concat('%', #{productTitle},'%') and c.merchant_id = #{authorId} and m.`name` like concat('%', #{author},'%') and o.`order_status` in #{sItem} and o.`id` in #{idItem} order by o.`update_date` desc