|
|
|
@ -243,9 +243,10 @@ class SubjectsController < ApplicationController
|
|
|
|
|
@courses = @courses.where(id: current_laboratory.all_courses)
|
|
|
|
|
|
|
|
|
|
@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("shixuns.shixun_id")
|
|
|
|
|
logger.info("########:#{current_user.user_extension.try(:school_id)}")
|
|
|
|
|
logger.info("########:#{@subject.shixuns.joins(:shixun_schools).pluck("shixun_schools.school_id")}")
|
|
|
|
|
logger.info("########:#{@none_shixun_ids}")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def send_to_course
|
|
|
|
|