导出成绩没有指导老师

dev_aliyun
daiao 5 years ago
parent 7da238def9
commit 7a5499a622

@ -11,7 +11,8 @@ class CompetitionTeam < ActiveRecord::Base
# attr_accessible :invite_code, :name, :team_type
def teacher
User.where(:id => self.teacher_id).first
teacher_id = self.teachers.first&.user_id
User.find_by(id: teacher_id)
end
def group_members

Loading…
Cancel
Save