|
|
|
@ -160,14 +160,11 @@ class SubjectsController < ApplicationController
|
|
|
|
|
@shixuns = @shixuns.where(id: shixun_ids)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
@shixuns = @shixuns.reorder("created_at desc")
|
|
|
|
|
@shixuns_count = @shixuns.size
|
|
|
|
|
@shixuns_count = @shixuns.count
|
|
|
|
|
|
|
|
|
|
## 分页参数
|
|
|
|
|
page = params[:page] || 1
|
|
|
|
|
@shixuns = @shixuns.page(page).per(10)
|
|
|
|
|
|
|
|
|
|
@shixuns = @shixuns.includes(:myshixuns)
|
|
|
|
|
@shixuns = @shixuns.includes(:myshixuns).reorder("created_at desc").page(page).per(10)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def append_to_stage
|
|
|
|
|