|
|
@ -582,6 +582,9 @@ class StudentWorksController < ApplicationController
|
|
|
|
score_appeal.tidings.update_all(status: 1)
|
|
|
|
score_appeal.tidings.update_all(status: 1)
|
|
|
|
|
|
|
|
|
|
|
|
if params[:status].to_i == 3
|
|
|
|
if params[:status].to_i == 3
|
|
|
|
|
|
|
|
# 申诉成功后该评分失效
|
|
|
|
|
|
|
|
score.update_attributes(is_invalid: 1)
|
|
|
|
|
|
|
|
|
|
|
|
# 申诉成功后 扣匿评学生的违规匿评扣分
|
|
|
|
# 申诉成功后 扣匿评学生的违规匿评扣分
|
|
|
|
sw = @homework.student_works.find_by(user_id: score.user_id)
|
|
|
|
sw = @homework.student_works.find_by(user_id: score.user_id)
|
|
|
|
sw.update_attribute("appeal_penalty", @homework.homework_detail_manual.appeal_penalty + sw.appeal_penalty) if sw.present?
|
|
|
|
sw.update_attribute("appeal_penalty", @homework.homework_detail_manual.appeal_penalty + sw.appeal_penalty) if sw.present?
|
|
|
|