修改审核
This commit is contained in:
@@ -2510,7 +2510,7 @@ namespace IRaCIS.Application.Services
|
||||
if (claimSubjectDto.IsClaim)
|
||||
{
|
||||
|
||||
if(_subjectRepository.Any(t=>t.Id== claimSubjectDto.SubejctId && t.ClaimUserId != _userInfo.Id))
|
||||
if(_subjectRepository.Any(t=>t.Id== claimSubjectDto.SubejctId && t.ClaimUserId != _userInfo.Id && t.ClaimUserId!=null))
|
||||
{
|
||||
throw new BusinessValidationFailedException("当前任务已被其他人领取,请进行其他的阅片任务");
|
||||
}
|
||||
@@ -2550,7 +2550,7 @@ namespace IRaCIS.Application.Services
|
||||
{
|
||||
if (claimSubjectDto.IsClaim)
|
||||
{
|
||||
if (_visitTaskRepository.Any(t => t.Id == claimSubjectDto.VisitTaskId && t.DoctorUserId != _userInfo.Id))
|
||||
if (_visitTaskRepository.Any(t => t.Id == claimSubjectDto.VisitTaskId && t.DoctorUserId != _userInfo.Id && t.DoctorUserId != null))
|
||||
{
|
||||
throw new BusinessValidationFailedException("当前任务已被其他人领取,请进行其他的阅片任务");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user