|
|
|
@ -1383,7 +1383,7 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
|
batch_comment_works.update_all(comment: params[:comment], hidden_comment: params[:hidden_comment])
|
|
|
|
|
work_ids = work_ids - has_comment_ids - batch_comment_works.pluck(:student_work_id)
|
|
|
|
|
@homework.student_works.where(work_status: 0, id: work_ids).update_all(work_status: 1, commit_time: @homework.end_time, update_time: Time.now, work_score: 0, final_score: 0)
|
|
|
|
|
HomeworkBatchCommentJob.perform_now(params[:comment], params[:hidden_comment], work_ids, @homework.id, current_user.id)
|
|
|
|
|
HomeworkBatchCommentJob.perform_later(params[:comment], params[:hidden_comment], work_ids, @homework.id, current_user.id)
|
|
|
|
|
normal_status("评阅成功")
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|