作者 tangxvhui

更新

@@ -907,7 +907,7 @@ func (srv *SummaryEvaluationService) CountEvaluationSelfLevel(param *command.Que @@ -907,7 +907,7 @@ func (srv *SummaryEvaluationService) CountEvaluationSelfLevel(param *command.Que
907 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) 907 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
908 } 908 }
909 if len(evaluationList) == 0 { 909 if len(evaluationList) == 0 {
910 - return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) 910 + return nil, nil
911 } 911 }
912 evaluationData := evaluationList[0] 912 evaluationData := evaluationList[0]
913 levelCodeCountList, err := assessDao.CountAssessContentLevelCode(evaluationData.EvaluationProjectId, param.TargetUserId, domain.AssessSelf, param.CycleId) 913 levelCodeCountList, err := assessDao.CountAssessContentLevelCode(evaluationData.EvaluationProjectId, param.TargetUserId, domain.AssessSelf, param.CycleId)
@@ -98,7 +98,7 @@ func (d *SummaryEvaluationDao) GetTargetUserCycleList(executorId int, offset int @@ -98,7 +98,7 @@ func (d *SummaryEvaluationDao) GetTargetUserCycleList(executorId int, offset int
98 summary_evaluation.begin_time , 98 summary_evaluation.begin_time ,
99 summary_evaluation.cycle_name 99 summary_evaluation.cycle_name
100 from summary_evaluation 100 from summary_evaluation
101 - where summary_evaluation.target_user ->>'userId'='?' 101 + where summary_evaluation.deleted_at isnull and summary_evaluation.target_user ->>'userId'='?'
102 ` 102 `
103 tx := d.transactionContext.PgTx 103 tx := d.transactionContext.PgTx
104 condition := []interface{}{ 104 condition := []interface{}{