IRC_NewDev
he 2024-09-06 16:14:25 +08:00
parent 27749ec3cd
commit 0b987f937d
1 changed files with 22 additions and 2 deletions

View File

@ -3212,7 +3212,6 @@ namespace IRaCIS.Application.Services
// 冻结任务Id
List<Guid> reportRelatedTaskIdList = new List<Guid>();
if (isReadingTaskViewInOrder == ReadingOrder.InOrder)
{
@ -3279,7 +3278,28 @@ namespace IRaCIS.Application.Services
{
if (taskInfo.ReadingCategory == ReadingCategory.Visit)
{
relatedVisitTaskIdList.Add(taskInfo.Id);
switch(isReadingTaskViewInOrder)
{
case ReadingOrder.SubjectRandom:
relatedVisitTaskIdList = await _visitTaskRepository.Where(x =>
x.TrialId == taskInfo.TrialId &&
x.SubjectId == taskInfo.SubjectId &&
x.ReadingCategory == ReadingCategory.Visit &&
x.TrialReadingCriterionId == taskInfo.TrialReadingCriterionId &&
x.ReadingTaskState == ReadingTaskState.HaveSigned &&
x.IsAnalysisCreate == taskInfo.IsAnalysisCreate &&
x.ArmEnum == taskInfo.ArmEnum &&
x.IsSelfAnalysis == taskInfo.IsSelfAnalysis &&
x.DoctorUserId == taskInfo.DoctorUserId &&
x.TaskState == TaskState.Effect).Select(x => x.Id).ToListAsync();
break;
default:
relatedVisitTaskIdList.Add(taskInfo.Id);
break;
}
}
}