|
|
|
@ -1492,10 +1492,11 @@ class Issue < ActiveRecord::Base
|
|
|
|
|
#缺陷完成度更新
|
|
|
|
|
if self.done_ratio_changed?
|
|
|
|
|
UserScore.project(:update_issue_ratio, User.current,self,{ issue_id: self.id })
|
|
|
|
|
end
|
|
|
|
|
#缺陷状态更改
|
|
|
|
|
elsif self.status_id_changed?
|
|
|
|
|
#协同得分
|
|
|
|
|
UserScore.joint(:change_issue_status, User.current,nil,self, {issue_id: self.id})
|
|
|
|
|
if self.status_id_changed?
|
|
|
|
|
#协同得分
|
|
|
|
|
UserScore.joint(:change_issue_status, User.current,nil,self, {issue_id: self.id})
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|