From 9cbe753b219445a6258d63b2d5d0f15866372366 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 19 Feb 2020 13:02:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E5=A0=82=E5=8F=91=E9=80=81=E8=87=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/subjects_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/subjects_controller.rb b/app/controllers/subjects_controller.rb index bf5466b1e..ff969e97e 100644 --- a/app/controllers/subjects_controller.rb +++ b/app/controllers/subjects_controller.rb @@ -244,6 +244,8 @@ class SubjectsController < ApplicationController @none_shixun_ids = @subject.shixuns.joins(:shixun_schools) .where("school_id != #{current_user.user_extension.try(:school_id).to_i}").pluck(:id) + logger.info("########:#{current_user.user_extension.try(:school_id)}") + logger.info("########:#{@subject.shixuns.joins(:shixun_schools).pluck("shixun_schools.school_id")}") end def send_to_course