课堂发送至

sso
daiao 5 years ago
parent 5c77b8c7fe
commit 9cbe753b21

@ -244,6 +244,8 @@ class SubjectsController < ApplicationController
@none_shixun_ids = @subject.shixuns.joins(:shixun_schools) @none_shixun_ids = @subject.shixuns.joins(:shixun_schools)
.where("school_id != #{current_user.user_extension.try(:school_id).to_i}").pluck(:id) .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 end
def send_to_course def send_to_course

Loading…
Cancel
Save