school_shixun_ids=Shixun.joins("join user_extensions on shixuns.user_id=user_extensions.user_id").where(user_extensions:{school_id:school_id}).pluck(:id)
school_shixun_ids=Shixun.joins("join user_extensions on shixuns.user_id=user_extensions.user_id").where(user_extensions:{school_id:school_id}).pluck(:id)
@ -61,7 +62,8 @@ class Laboratory < ApplicationRecord
school_subject_ids=Subject.joins("join user_extensions on subjects.user_id=user_extensions.user_id").where(user_extensions:{school_id:school_id}).pluck(:id)
school_subject_ids=Subject.joins("join user_extensions on subjects.user_id=user_extensions.user_id").where(user_extensions:{school_id:school_id}).pluck(:id)