From 8e92f17e59d7fd5347e35a114a66454657444cbf Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 11 Oct 2019 16:56:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/homework_commons_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/homework_commons_controller.rb b/app/controllers/homework_commons_controller.rb index 6d05b95d8..10f046323 100644 --- a/app/controllers/homework_commons_controller.rb +++ b/app/controllers/homework_commons_controller.rb @@ -164,7 +164,7 @@ class HomeworkCommonsController < ApplicationController all_student_works = @student_works.joins(:myshixun) @student_works = all_student_works.where(work_status: work_status) - @student_works = @student_works.or(all_student_works.where(work_status: 0)).or(all_student_works.where(myshixun: {status: 0})) if work_status.include?(3) + @student_works = @student_works.or(all_student_works.where(work_status: 0)).or(all_student_works.where(myshixuns: {status: 0})) if work_status.include?(3) @student_works = @student_works.or(all_student_works.where(myshixun: {status: 0})) if work_status.include?(4) end