修改bug

Uat_Study
hang 2022-07-26 16:34:56 +08:00
parent b71732c623
commit 0bd363d99c
2 changed files with 5 additions and 5 deletions

View File

@ -42,12 +42,14 @@ namespace IRaCIS.Core.Application.Service
/// </summary>
/// <param name="trialId"></param>
/// <returns></returns>
public async Task<List<TaskAllocationRuleDTO>> GetDoctorPlanAllocationRuleList(Guid trialId)
public async Task<(List<TaskAllocationRuleDTO>,object?)> GetDoctorPlanAllocationRuleList(Guid trialId)
{
var list = await _taskAllocationRuleRepository.Where(t => t.TrialId == trialId).ProjectTo<TaskAllocationRuleDTO>(_mapper.ConfigurationProvider).ToListAsync();
return list;
var trialTaskConfig = _trialRepository.Where(t => t.Id == trialId).ProjectTo<TrialTaskConfigView>(_mapper.ConfigurationProvider).FirstOrDefault();
return (list, trialTaskConfig);
}

View File

@ -156,16 +156,14 @@ namespace IRaCIS.Core.Application.Service
{
throw new BusinessValidationFailedException("能参与读片的医生数量必须>=2,自动分配任务中止");
//break;
}
if (!(assignConfigList.Any(t => t.ArmEnum == Arm.DoubleReadingArm1) && allocateSubjectArmList.Any(t => t.ArmEnum == Arm.DoubleReadingArm2)))
if (!(assignConfigList.Any(t => t.ArmEnum == Arm.DoubleReadingArm1) || ! assignConfigList.Any(t => t.ArmEnum == Arm.DoubleReadingArm2)))
{
throw new BusinessValidationFailedException("该受试者阅片医生未配置完成");
//break;
}
#endregion