缺评;列表显示错误

This commit is contained in:
sw 2015-06-19 14:20:00 +08:00
parent 469f1c3663
commit b6ff494b56
1 changed files with 1 additions and 1 deletions

View File

@ -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"