|
|
@ -52,7 +52,8 @@ module ApplicationHelper
|
|
|
|
|
|
|
|
|
|
|
|
shixun_id = shixun_id.blank? ? -1 : shixun_id.join(",")
|
|
|
|
shixun_id = shixun_id.blank? ? -1 : shixun_id.join(",")
|
|
|
|
Shixun.select([:id, :name, :user_id, :challenges_count, :myshixuns_count, :trainee, :identifier]).where("id
|
|
|
|
Shixun.select([:id, :name, :user_id, :challenges_count, :myshixuns_count, :trainee, :identifier]).where("id
|
|
|
|
in(#{shixun_id}) or homepage_show =1").unhidden.order("myshixuns_count desc, homepage_show asc").limit(3)
|
|
|
|
in(#{shixun_id})").unhidden.order("homepage_show asc, myshixuns_count desc").limit(3)
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# 相关推荐
|
|
|
|
# 相关推荐
|
|
|
|