From b6ff494b562188ffc35404cf4ffd1707bd8addb6 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 19 Jun 2015 14:20:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=BA=E8=AF=84=EF=BC=9B=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/student_work_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index c8cbde626..af2a25f1d 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -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"