|
|
|
@ -61,12 +61,12 @@ class StudentWork < ApplicationRecord
|
|
|
|
|
|
|
|
|
|
# 当前用户该作品的匿评申诉总条数
|
|
|
|
|
def my_appeal_all_count user_id
|
|
|
|
|
student_works_scores.select{|score| score.reviewer_role == 3 && score.appeal_status != 0 && score.user_id = user_id}.size
|
|
|
|
|
student_works_scores.select{|score| score.reviewer_role == 3 && score.appeal_status != 0 && score.user_id == user_id}.size
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 当前用户该作品的匿评申诉总条数
|
|
|
|
|
def my_appeal_deal_count user_id
|
|
|
|
|
student_works_scores.select{|score| score.reviewer_role == 3 && score.appeal_status == 1 && score.user_id = user_id}.size
|
|
|
|
|
student_works_scores.select{|score| score.reviewer_role == 3 && score.appeal_status == 1 && score.user_id == user_id}.size
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 分组名
|
|
|
|
|