作者 tangxvhui

更新

... ... @@ -269,7 +269,7 @@ func (srv *SummaryEvaluationService) EditEvaluation360(param *command.EditEvalua
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
if !param.IsTemporary {
err = srv.AfterCompletedEvaluation360Hrbp(transactionContext, summaryEvaluation, itemValueList)
err = srv.AfterCompletedEvaluation360Hrbp(transactionContext, summaryEvaluation, evaluationValueSlice)
if err != nil {
return nil, err
}
... ... @@ -277,7 +277,7 @@ func (srv *SummaryEvaluationService) EditEvaluation360(param *command.EditEvalua
if err := transactionContext.CommitTransaction(); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
itemValueAdapter := srv.buildSummaryItemValue(itemList, itemValueList)
itemValueAdapter := srv.buildSummaryItemValue(itemList, evaluationValueSlice)
return map[string][]adapter.EvaluationItemAdapter{
"evaluationItems": itemValueAdapter,
}, nil
... ...
... ... @@ -400,7 +400,7 @@ func (srv *SummaryEvaluationService) EditEvaluationHRBP(param *command.EditEvalu
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
if !param.IsTemporary {
err = srv.AfterCompletedEvaluation360Hrbp(transactionContext, summaryEvaluation, itemValueList)
err = srv.AfterCompletedEvaluation360Hrbp(transactionContext, summaryEvaluation, evaluationValueSlice)
if err != nil {
return nil, err
}
... ... @@ -409,7 +409,7 @@ func (srv *SummaryEvaluationService) EditEvaluationHRBP(param *command.EditEvalu
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
itemValueAdapter := srv.buildSummaryItemValue(itemList, itemValueList)
itemValueAdapter := srv.buildSummaryItemValue(itemList, evaluationValueSlice)
return map[string][]adapter.EvaluationItemAdapter{
"evaluationItems": itemValueAdapter,
}, nil
... ...
... ... @@ -341,7 +341,7 @@ func (srv *SummaryEvaluationService) EditEvaluationSelfV2(param *command.EditEva
}
}
if !param.IsTemporary {
err = srv.AfterCompletedEvaluationSelf(transactionContext, evaluationData, itemValueList)
err = srv.AfterCompletedEvaluationSelf(transactionContext, evaluationData, evaluationValueSlice)
if err != nil {
return nil, err
}
... ... @@ -349,7 +349,7 @@ func (srv *SummaryEvaluationService) EditEvaluationSelfV2(param *command.EditEva
if err := transactionContext.CommitTransaction(); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
itemValueAdapter := srv.buildSummaryItemValue(itemList, itemValueList)
itemValueAdapter := srv.buildSummaryItemValue(itemList, evaluationValueSlice)
return map[string][]adapter.EvaluationItemAdapter{
"EvaluationItems": itemValueAdapter,
}, nil
... ...
... ... @@ -462,7 +462,7 @@ func (srv *SummaryEvaluationService) EditEvaluationSuper(param *command.EditEval
}
}
if !param.IsTemporary {
err = srv.AfterCompletedEvaluationSuper(transactionContext, evaluationData, itemValueList)
err = srv.AfterCompletedEvaluationSuper(transactionContext, evaluationData, evaluationValueSlice)
if err != nil {
return nil, err
}
... ... @@ -471,7 +471,7 @@ func (srv *SummaryEvaluationService) EditEvaluationSuper(param *command.EditEval
if err := transactionContext.CommitTransaction(); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
itemValueAdapter := srv.buildSummaryItemValue(itemList, itemValueList)
itemValueAdapter := srv.buildSummaryItemValue(itemList, evaluationValueSlice)
return map[string][]adapter.EvaluationItemAdapter{
"EvaluationItems": itemValueAdapter,
}, nil
... ...
... ... @@ -9,8 +9,8 @@ import (
func TestGenerateToken(t *testing.T) {
ut := UserAuth{
CompanyId: 8,
UserId: 3422174102828544,
Phone: "17708397664",
UserId: 3422052605249024,
Phone: "13677777777",
PlatformId: 29,
AdminType: 1,
}
... ...