From 4c9b46a20c092047587191f264548b7cfb37368e Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 25 Jul 2023 18:06:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=8F=E5=88=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs | 1 - IRaCIS.Core.Application/Service/ImageAndDoc/_MapConfig.cs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs b/IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs index f78fe37c0..3283be4b5 100644 --- a/IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs +++ b/IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs @@ -237,7 +237,6 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc var study = await _dicomstudyRepository.FirstOrDefaultAsync(t => t.Id == studyId); - //_mapper.Map(incommand.Study, study); //特殊处理逻辑 study.Modalities = string.Join("、", incommand.Study.SeriesList.Select(t => t.Modality).Union(study.Modalities.Split("、", StringSplitOptions.RemoveEmptyEntries)).Distinct()); diff --git a/IRaCIS.Core.Application/Service/ImageAndDoc/_MapConfig.cs b/IRaCIS.Core.Application/Service/ImageAndDoc/_MapConfig.cs index 3dca2c49c..0166cdc2a 100644 --- a/IRaCIS.Core.Application/Service/ImageAndDoc/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/ImageAndDoc/_MapConfig.cs @@ -12,7 +12,8 @@ namespace IRaCIS.Core.Application.Service { public ImageAndDocConfig() { - CreateMap(); + CreateMap() + .ForMember(d => d.SeriesList, u => u.Ignore()); CreateMap(); CreateMap();