作者 tangxvhui

调整EvaluationTotalScore逻辑

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