修改
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user