减少赋值字段
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-06-12 17:24:51 +08:00
parent c2350f1418
commit f14525ea95
2 changed files with 10 additions and 10 deletions
@@ -486,7 +486,7 @@ namespace IRaCIS.Core.Application.Services
var taskInfo = await _visitTaskRepository.Where(x => x.Id == indto.VisitTaskId).Select(t => new {t.TrialReadingCriterionId,t.TrialReadingCriterion.IsImageFilter,t.TrialReadingCriterion.CriterionModalitys, t.ReadingTaskState ,TaskStudyCount=t.TaskStudyList.Count }).FirstNotNullAsync();
//影后处理 上传了新的影像
//影后处理 上传了新的影像
if (taskInfo.TaskStudyCount > 0)
{
@@ -496,11 +496,11 @@ namespace IRaCIS.Core.Application.Services
{
study.SeriesList = study.SeriesList.OrderBy(s => s.SeriesNumber).ThenBy(s => s.SeriesTime).ToList();
foreach (var series in study.SeriesList)
{
series.WindowCenter = series.InstanceInfoList.FirstOrDefault()!.WindowCenter;
series.WindowWidth = series.InstanceInfoList.FirstOrDefault()!.WindowWidth;
}
//foreach (var series in study.SeriesList)
//{
// series.WindowCenter = series.InstanceInfoList.FirstOrDefault()!.WindowCenter;
// series.WindowWidth = series.InstanceInfoList.FirstOrDefault()!.WindowWidth;
//}
//study.SeriesCount = study.SeriesList.Count;
study.InstanceCount = study.SeriesList.SelectMany(t => t.InstanceInfoList).Count();
@@ -556,8 +556,8 @@ namespace IRaCIS.Core.Application.Services
}).ToList();
series.WindowWidth = instanceList.FirstOrDefault()!.WindowWidth;
series.WindowCenter = instanceList.FirstOrDefault()!.WindowCenter;
//series.WindowWidth = instanceList.FirstOrDefault()!.WindowWidth;
//series.WindowCenter = instanceList.FirstOrDefault()!.WindowCenter;
});
//设置为阅片与否 不更改数据库检查 的instance数量 和 SeriesCount 所以这里要实时统计