作者 tangxvhui

暂存

... ... @@ -144,7 +144,7 @@ func (srv *SummaryEvaluationService) buildSummaryFinishValue(transactionContext
return evaluationFinishValue, nil
}
//使用360评估、人资评估、构建考核结果的评估项内容
//使用360评估、人资评估、自评 构建考核结果的评估项内容
var itemValueBack []*domain.SummaryEvaluationValue
var summaryEvaluationId []int
for _, val := range evaluationList {
... ... @@ -158,11 +158,23 @@ func (srv *SummaryEvaluationService) buildSummaryFinishValue(transactionContext
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
}
}
_ = itemValueBack
//使用
// for _, val := range itemValueBack {
// }
tempSelf := map[int]*domain.SummaryEvaluationValue{}
temp360 := map[int]*domain.SummaryEvaluationValue{}
tempHRBP := map[int]*domain.SummaryEvaluationValue{}
for i := range itemValueBack {
it := itemValueBack[i]
switch it.Types {
case domain.EvaluationSelf:
tempSelf[it.EvaluationItemId] = it
case domain.Evaluation360:
temp360[it.EvaluationItemId] = it
case domain.EvaluationHrbp:
tempHRBP[it.EvaluationItemId] = it
}
}
for _, val := range itemUsed {
var newItemValue *domain.SummaryEvaluationValue
}
return evaluationFinishValue, nil
}
... ...