导出竞赛成绩的问题

dev_aliyun
daiao 5 years ago
parent 4f1bb3e18d
commit 78f1d0610f

@ -12,7 +12,7 @@ class CompetitionTeam < ActiveRecord::Base
def teacher
teacher_id = self.teachers.first&.user_id
User.find_by(id: teacher_id)
User.where(id: teacher_id).first
end
def group_members

Loading…
Cancel
Save