修复bug

This commit is contained in:
2022-07-26 15:07:05 +08:00
parent 3f8ec97a02
commit 5b32340594
3 changed files with 12 additions and 6 deletions
@@ -129,7 +129,7 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid? Id { get; set; }
public Guid TrialId { get; set; }
public Guid EnrollId { get; set; }
//public Guid EnrollId { get; set; }
[NotDefault]
public Guid DoctorUserId { get; set; }
@@ -154,14 +154,18 @@ namespace IRaCIS.Core.Application.Service
if (_taskAllocationRuleRepository.Where(t => t.TrialId == trialId && t.IsEnable && t.IsJudgeDoctor == false).Count() < 2)
{
throw new BusinessValidationFailedException("能参与读片的医生数量必须大于2,自动分配任务中止");
//throw new BusinessValidationFailedException("能参与读片的医生数量必须>=2,自动分配任务中止");
break;
}
if (!(assignConfigList.Any(t => t.ArmEnum == Arm.DoubleReadingArm1) && allocateSubjectArmList.Any(t => t.ArmEnum == Arm.DoubleReadingArm2)))
{
throw new BusinessValidationFailedException("该受试者阅片医生未配置完成");
//throw new BusinessValidationFailedException("该受试者阅片医生未配置完成");
break;
}
#endregion
@@ -394,7 +398,9 @@ namespace IRaCIS.Core.Application.Service
{
if (_taskAllocationRuleRepository.Where(t => t.TrialId == trialId && t.IsEnable).Count() < 2)
{
throw new BusinessValidationFailedException("能参与读片的医生数量必须大于2,自动分配任务中止");
//throw new BusinessValidationFailedException("能参与读片的医生数量必须>=2,自动分配任务中止");
break;
}
//配置了医生