作品的统计不见了

This commit is contained in:
cxt 2016-05-13 17:30:05 +08:00
parent 821cd8ad99
commit 695e870a26
1 changed files with 1 additions and 0 deletions

View File

@ -499,6 +499,7 @@ class StudentWorkController < ApplicationController
render_403
return
end
@student_work_count = (search_homework_member @homework.student_works.select("student_works.*,student_works.work_score as score").order("#{@order} #{@b_sort}"),@name).count
end
@score = @b_sort == "desc" ? "asc" : "desc"