From 09305928ed100d25b9728fa0d96365c551780db5 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Mon, 22 Sep 2025 14:58:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=A4=84=E7=90=86=E6=A3=80=E6=9F=A5bu?= =?UTF-8?q?g=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ImageAndDoc/DownloadAndUploadService.cs | 24 +++++++++++++++++++ .../Service/ImageAndDoc/StudyService.cs | 24 +------------------ 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs b/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs index cf8a37980..ae188a413 100644 --- a/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs +++ b/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs @@ -611,6 +611,30 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc } + #region 只配置单个部位自动赋值 + + var originStudy = _dicomStudyRepository.Where(t => t.TrialId == incommand.TrialId && t.StudyInstanceUid == findStudy.StudyInstanceUid).FirstOrDefault(); + + if (originStudy != null) + { + findStudy.BodyPartForEdit = originStudy.BodyPartForEdit; + + findStudy.BodyPartForEditOther = originStudy.BodyPartForEditOther; + } + + + ////项目配置的影像部位 + //var trialBodyParts = _trialRepository.Where(t => t.Id == trialId).Select(t => t.BodyPartTypes).FirstOrDefault(); + + //var trialBodyPartList = trialBodyParts.Split('|', StringSplitOptions.RemoveEmptyEntries); + + //if (trialBodyPartList.Count() == 1) + //{ + // var first = trialBodyPartList.First(); + // findStudy.BodyPartForEdit = first; + //} + #endregion + var @lock2 = _distributedLockProvider.CreateLock($"StudyCommit"); using (await @lock2.AcquireAsync()) diff --git a/IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs b/IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs index 644bae462..e46c85f9f 100644 --- a/IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs +++ b/IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs @@ -323,29 +323,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc } - #region 只配置单个部位自动赋值 - - var originStudy = _dicomStudyRepository.Where(t => t.TrialId == incommand.TrialId && t.StudyInstanceUid == findStudy.StudyInstanceUid).FirstOrDefault(); - - if(originStudy != null) - { - findStudy.BodyPartForEdit=originStudy.BodyPartForEdit; - - findStudy.BodyPartForEditOther = originStudy.BodyPartForEditOther; - } - - - ////项目配置的影像部位 - //var trialBodyParts = _trialRepository.Where(t => t.Id == trialId).Select(t => t.BodyPartTypes).FirstOrDefault(); - - //var trialBodyPartList = trialBodyParts.Split('|', StringSplitOptions.RemoveEmptyEntries); - - //if (trialBodyPartList.Count() == 1) - //{ - // var first = trialBodyPartList.First(); - // findStudy.BodyPartForEdit = first; - //} - #endregion + var @lock2 = _distributedLockProvider.CreateLock($"StudyCommit");