|
@@ -681,10 +681,10 @@ func (srv *SummaryEvaluationService) GetEvaluationSuper(param *command.QueryEval |
|
@@ -681,10 +681,10 @@ func (srv *SummaryEvaluationService) GetEvaluationSuper(param *command.QueryEval |
681
|
if err != nil {
|
681
|
if err != nil {
|
682
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
682
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
683
|
}
|
683
|
}
|
684
|
- if evaluationData.Types == domain.EvaluationSuper {
|
684
|
+ if evaluationData.Types != domain.EvaluationSuper {
|
685
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "没有操作权限")
|
685
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "没有操作权限")
|
686
|
}
|
686
|
}
|
687
|
- if evaluationData.CompanyId == param.CompanyId {
|
687
|
+ if evaluationData.CompanyId != param.CompanyId {
|
688
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "没有操作权限")
|
688
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "没有操作权限")
|
689
|
}
|
689
|
}
|
690
|
_, itemList, err := evaluationItemRepo.Find(map[string]interface{}{
|
690
|
_, itemList, err := evaluationItemRepo.Find(map[string]interface{}{
|
|
@@ -1126,7 +1126,7 @@ func (srv *SummaryEvaluationService) GetTargetUserEvaluationSuper(param *command |
|
@@ -1126,7 +1126,7 @@ func (srv *SummaryEvaluationService) GetTargetUserEvaluationSuper(param *command |
1126
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有找到符合条件的数据")
|
1126
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有找到符合条件的数据")
|
1127
|
}
|
1127
|
}
|
1128
|
evaluationData := evaluationList[0]
|
1128
|
evaluationData := evaluationList[0]
|
1129
|
- if evaluationData.CompanyId == param.CompanyId {
|
1129
|
+ if evaluationData.CompanyId != param.CompanyId {
|
1130
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "没有操作权限")
|
1130
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "没有操作权限")
|
1131
|
}
|
1131
|
}
|
1132
|
_, itemList, err := evaluationItemRepo.Find(map[string]interface{}{
|
1132
|
_, itemList, err := evaluationItemRepo.Find(map[string]interface{}{
|