修改参与人员退出限制
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
d8eb7acf2e
commit
4ffedb4052
|
@ -87,11 +87,12 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
if (updateTrialUserCommand.IsDeleted)
|
||||
{
|
||||
if (await _trialSiteUserRoleRepository.AnyAsync(t => t.UserRole.IdentityUserId == trialUser.IdentityUserId && t.TrialId == trialUser.TrialId))
|
||||
{
|
||||
// ----人员已加入现场维护
|
||||
return ResponseOutput.NotOk(_localizer["TrialMaint_PersonnelJoined"]);
|
||||
}
|
||||
//可以直接退出,不管中心下的CRC CRA 状态
|
||||
//if (await _trialSiteUserRoleRepository.AnyAsync(t => t.UserRole.IdentityUserId == trialUser.IdentityUserId && t.TrialId == trialUser.TrialId))
|
||||
//{
|
||||
// // ----人员已加入现场维护
|
||||
// return ResponseOutput.NotOk(_localizer["TrialMaint_PersonnelJoined"]);
|
||||
//}
|
||||
|
||||
var findQC = await _trialUseRoleRepository.FirstOrDefaultAsync(t => t.UserRole.IdentityUserId == trialUser.IdentityUserId && t.UserRole.UserTypeEnum == UserTypeEnum.IQC);
|
||||
|
||||
|
|
Loading…
Reference in New Issue