|
|
|
@ -334,7 +334,7 @@ class StudentWorksController < ApplicationController
|
|
|
|
|
@work.update_attributes(update_time: Time.now)
|
|
|
|
|
|
|
|
|
|
# 补交附件时给评阅过作品的教师、助教发消息
|
|
|
|
|
unless @work.student_works_scores.where.not(score: nil).where(reviewer_role: [1, 2]).pluck(user_id).uniq.blank?
|
|
|
|
|
unless @work.student_works_scores.where.not(score: nil).where(reviewer_role: [1, 2]).pluck(:user_id).uniq.blank?
|
|
|
|
|
ResubmitStudentWorkNotifyJob.perform_later(@homework.id, [current_user.id])
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|