多模态过滤
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2025-03-25 15:30:15 +08:00
parent 374f024f85
commit 8378e8f2d6
1 changed files with 7 additions and 2 deletions

View File

@ -3078,7 +3078,7 @@ namespace IRaCIS.Application.Services
//看当前前端有没有传递modality有的话以前端为准没有的话以配置为准 构造同样数量的请求
var requestModalityList = (inQuery.ModalitiesInStudyList != null && inQuery.ModalitiesInStudyList.Count > 0) ? inQuery.ModalitiesInStudyList : find.ModalityList;
if (inQuery.TrialId == null)
@ -3119,7 +3119,7 @@ namespace IRaCIS.Application.Services
await client.AddRequestAsync(request);
}
}
await client.SendAsync();
}
else
@ -3227,6 +3227,11 @@ namespace IRaCIS.Application.Services
result = result.Where(t => t.IsStudyExist == false).ToList();
}
//查询的时候不支持多模态的可以去重一下,支持多模态的本身处理了分组过滤也不影响
result = result.GroupBy(t => t.StudyInstanceUID).Select(g => g.First()).ToList();
}