...
|
...
|
@@ -164,6 +164,8 @@ func (srv *SummaryEvaluationService) EditEvaluationByHrCheck(param *command.Edit |
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
evalutionHrbp.Status = domain.EvaluationCompleted
|
|
|
evalutionHrbp.HrCheckResult = domain.EvaluationCheckCompleted
|
|
|
err = evaluationRepo.Save(evalutionHrbp)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
...
|
...
|
@@ -183,6 +185,8 @@ func (srv *SummaryEvaluationService) EditEvaluationByHrCheck(param *command.Edit |
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
val.Status = domain.EvaluationCompleted
|
|
|
val.HrCheckResult = domain.EvaluationCheckCompleted
|
|
|
err = evaluationRepo.Save(val)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
...
|
...
|
@@ -202,6 +206,8 @@ func (srv *SummaryEvaluationService) EditEvaluationByHrCheck(param *command.Edit |
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
evaluationSuper.Status = domain.EvaluationCompleted
|
|
|
evaluationSuper.HrCheckResult = domain.EvaluationCheckCompleted
|
|
|
err = evaluationRepo.Save(evaluationSuper)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
...
|
...
|
@@ -222,6 +228,7 @@ func (srv *SummaryEvaluationService) EditEvaluationByHrCheck(param *command.Edit |
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
evalutionFinish.Status = domain.EvaluationCompleted
|
|
|
evalutionFinish.HrCheckResult = domain.EvaluationCheckCompleted
|
|
|
err = evaluationRepo.Save(evalutionFinish)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
...
|
...
|
|