实训作品评阅更新状态

issues25489
cxt 6 years ago
parent b3b901b7b5
commit 3b05943f07

@ -494,6 +494,9 @@ class StudentWorksController < ApplicationController
@comment.comment = params[:comment] @comment.comment = params[:comment]
@comment.hidden_comment = params[:hidden_comment] @comment.hidden_comment = params[:hidden_comment]
@comment.save! @comment.save!
if @work.work_status == 0
@work.update_attributes!(work_status: 1, commit_time: @homework.end_time, update_time: Time.now, work_score: 0, final_score: 0)
end
end end
end end

Loading…
Cancel
Save