作者 tangxvhui

调整EvaluationTotalScore逻辑

@@ -72,6 +72,10 @@ type SummaryEvaluationRepository interface { @@ -72,6 +72,10 @@ type SummaryEvaluationRepository interface {
72 72
73 // 计算总分。TotalScore 保留1位小数 73 // 计算总分。TotalScore 保留1位小数
74 func (evaluation *SummaryEvaluation) EvaluationTotalScore(valueList []*SummaryEvaluationValue) error { 74 func (evaluation *SummaryEvaluation) EvaluationTotalScore(valueList []*SummaryEvaluationValue) error {
  75 + //重置计数
  76 + evaluation.TotalRating = make([]RatingCodeNumber, 0)
  77 + evaluation.TotalScore = "0"
  78 + //汇总评估填写值
75 var totalScore float64 79 var totalScore float64
76 for _, v := range valueList { 80 for _, v := range valueList {
77 if v.Weight == 0 { 81 if v.Weight == 0 {