diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialExternalUserService.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialExternalUserService.cs index 4bd79f26..d7f3aff8 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialExternalUserService.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialExternalUserService.cs @@ -163,7 +163,7 @@ namespace IRaCIS.Core.Application.Service } else - { + { return ResponseOutput.NotOk("人员信息不支持编辑,请删除后重新添加。"); } @@ -178,7 +178,7 @@ namespace IRaCIS.Core.Application.Service { var trialExternalUser = await _trialExternalUseRepository.FirstOrDefaultAsync(t => t.Id == trialExternalUserId); - if (await _trialUserRepository.AnyAsync(t => t.TrialId == trialExternalUser.TrialId && t.Id == trialExternalUser.SystemUserId)) + if (await _trialUserRepository.AnyAsync(t => t.TrialId == trialExternalUser.TrialId && t.UserId == trialExternalUser.SystemUserId)) { return ResponseOutput.NotOk("当前用户已参与到项目,不允许删除"); }