缺评;列表显示错误
This commit is contained in:
parent
469f1c3663
commit
b6ff494b56
|
@ -243,7 +243,7 @@ class StudentWorkController < ApplicationController
|
|||
(SELECT COUNT(*) FROM `student_works_evaluation_distributions` WHERE user_id = student_works.user_id AND student_work_id IN #{work_ids}) AS all_count,
|
||||
(SELECT COUNT(*) FROM `student_works_scores` WHERE user_id = student_works.user_id AND student_work_id IN #{work_ids}) AS has_count
|
||||
FROM `student_works`
|
||||
WHERE homework_common_id = 213
|
||||
WHERE homework_common_id = #{@homework.id}
|
||||
) AS table_1
|
||||
ORDER BY absence #{order}")
|
||||
@order = order == "desc" ? "asc" : "desc"
|
||||
|
|
Loading…
Reference in New Issue