|
|
|
@ -43,7 +43,6 @@ class ShixunSearchService < ApplicationService
|
|
|
|
|
@shixuns = @shixuns.where(trainee: params[:diff])
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
Rails.logger.info("search_shixun_ids: #{@shixuns.pluck(:id)}")
|
|
|
|
|
Shixun.search(keyword, search_options)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -53,7 +52,7 @@ class ShixunSearchService < ApplicationService
|
|
|
|
|
|
|
|
|
|
order =
|
|
|
|
|
if sort_str == "wechat_myshixuns_count"
|
|
|
|
|
{"is_wechat_support" => "desc", sort_str => order_str}
|
|
|
|
|
{"is_wechat_support" => "desc", "myshixuns_count" => order_str}
|
|
|
|
|
else
|
|
|
|
|
{sort_str => order_str}
|
|
|
|
|
end
|
|
|
|
|