作者 tangxvhui

暂存

@@ -144,7 +144,7 @@ func (srv *SummaryEvaluationService) buildSummaryFinishValue(transactionContext @@ -144,7 +144,7 @@ func (srv *SummaryEvaluationService) buildSummaryFinishValue(transactionContext
144 return evaluationFinishValue, nil 144 return evaluationFinishValue, nil
145 } 145 }
146 146
147 - //使用360评估、人资评估、构建考核结果的评估项内容 147 + //使用360评估、人资评估、自评 构建考核结果的评估项内容
148 var itemValueBack []*domain.SummaryEvaluationValue 148 var itemValueBack []*domain.SummaryEvaluationValue
149 var summaryEvaluationId []int 149 var summaryEvaluationId []int
150 for _, val := range evaluationList { 150 for _, val := range evaluationList {
@@ -158,11 +158,23 @@ func (srv *SummaryEvaluationService) buildSummaryFinishValue(transactionContext @@ -158,11 +158,23 @@ func (srv *SummaryEvaluationService) buildSummaryFinishValue(transactionContext
158 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 158 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
159 } 159 }
160 } 160 }
161 - _ = itemValueBack  
162 - //使用  
163 - // for _, val := range itemValueBack {  
164 -  
165 - // } 161 + tempSelf := map[int]*domain.SummaryEvaluationValue{}
  162 + temp360 := map[int]*domain.SummaryEvaluationValue{}
  163 + tempHRBP := map[int]*domain.SummaryEvaluationValue{}
  164 + for i := range itemValueBack {
  165 + it := itemValueBack[i]
  166 + switch it.Types {
  167 + case domain.EvaluationSelf:
  168 + tempSelf[it.EvaluationItemId] = it
  169 + case domain.Evaluation360:
  170 + temp360[it.EvaluationItemId] = it
  171 + case domain.EvaluationHrbp:
  172 + tempHRBP[it.EvaluationItemId] = it
  173 + }
  174 + }
  175 + for _, val := range itemUsed {
  176 + var newItemValue *domain.SummaryEvaluationValue
166 177
  178 + }
167 return evaluationFinishValue, nil 179 return evaluationFinishValue, nil
168 } 180 }