|
|
|
@ -51,6 +51,7 @@ class Admins::ShixunSettingsQuery < ApplicationQuery
|
|
|
|
|
all_shixuns = all_shixuns.where(task_pass: params[:task_pass]) if params[:task_pass]
|
|
|
|
|
all_shixuns = all_shixuns.where(code_hidden: params[:code_hidden]) if params[:code_hidden]
|
|
|
|
|
all_shixuns = all_shixuns.where(vip: params[:vip]) if params[:vip]
|
|
|
|
|
all_shixuns = all_shixuns.where(is_wechat_support: params[:is_wechat_support]) if params[:is_wechat_support]
|
|
|
|
|
|
|
|
|
|
custom_sort(all_shixuns, params[:sort_by], params[:sort_direction])
|
|
|
|
|
end
|
|
|
|
|