作者 tangxvhui

修正空指针异常

... ... @@ -391,7 +391,7 @@ func (srv *SummaryEvaluationService) GetEvaluationSelfByCycle(param *command.Que
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
if len(evaluationList) == 0 {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
return &adapter.EvaluationInfoSelfAdapter{}, nil
}
evaluationData := evaluationList[0]
if evaluationData.CompanyId != param.CompanyId {
... ...