修改访视领取限制

Uat_Study
hang 2022-04-28 16:28:27 +08:00
parent fd380ce430
commit 89a96fd7d6
1 changed files with 8 additions and 8 deletions

View File

@ -1112,16 +1112,16 @@ namespace IRaCIS.Core.Application.Image.QA
}
if (await _subjectVisitRepository.AnyAsync(t => t.IsTake &&
t.SubjectId != dbSubjectVisit.SubjectId &&
t.CurrentActionUserId == _userInfo.Id &&
t.TrialId == dbSubjectVisit.TrialId
))
{
//if (await _subjectVisitRepository.AnyAsync(t => t.IsTake &&
// t.SubjectId != dbSubjectVisit.SubjectId &&
// t.CurrentActionUserId == _userInfo.Id &&
// t.TrialId == dbSubjectVisit.TrialId
// ))
//{
return ResponseOutput.NotOk("您已经领取了其他受试者,完成后才允许领取新的受试者");
}
// return ResponseOutput.NotOk("您已经领取了其他受试者,完成后才允许领取新的受试者");
//}
#region 处理验证