This commit is contained in:
he
2022-11-22 13:37:26 +08:00
parent a6cebc1fd1
commit 3c4d07e162
5 changed files with 74 additions and 15 deletions
@@ -257,8 +257,8 @@ namespace IRaCIS.Core.Application.Services
if (taskInfo.ReadingTaskState == ReadingTaskState.HaveSigned)
{
var thisStudyIds = thisRowinfo.Select(x => x.StudyId).ToList();
var thisSeriesIdIds = thisRowinfo.Where(x => x.SeriesId != null).Select(x => x.SeriesId).ToList();
var thisStudyIds = thisRowinfo.Select(x => x.StudyId).Distinct().ToList();
var thisSeriesIdIds = thisRowinfo.Where(x => x.SeriesId != null).Select(x => x.SeriesId).Distinct().ToList();
if (thisRowinfo.Count > 0)
{
var thisVisitTaskStudy = await _repository.Where<DicomStudy>(t => thisStudyIds.Contains(t.Id)).Select(k => new VisitStudyDTO()
@@ -287,7 +287,7 @@ namespace IRaCIS.Core.Application.Services
thisVisitTaskStudy.SeriesList.ForEach(x =>
{
x.InstanceList = thisRowinfo.Where(y => y.InstanceId != null).Select(y => y.InstanceId.Value).ToList();
x.InstanceList = thisRowinfo.Where(y => y.InstanceId != null).Select(y => y.InstanceId.Value).Distinct().ToList();
x.InstanceCount = x.InstanceList.Count();
});