From 238def80893b11a0c20a23f536ead279339244b5 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 30 May 2024 11:23:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/ImageAndDoc/StudyService.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs b/IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs index 265bc421c..07f72ca22 100644 --- a/IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs +++ b/IRaCIS.Core.Application/Service/ImageAndDoc/StudyService.cs @@ -192,14 +192,14 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc study.SubjectId = incommand.SubjectId; study.SubjectVisitId = incommand.SubjectVisitId; - ////如果因为意外情况,连续点击两次,导致第一次插入了,第二次进来也会插入,在此判断一下 - //var findStudy = _dicomstudyRepository.FirstOrDefaultAsync(t => t.Id == study.Id); + //如果因为意外情况,连续点击两次,导致第一次插入了,第二次进来也会插入,在此判断一下 + var findStudy = await _dicomstudyRepository.FirstOrDefaultAsync(t => t.Id == study.Id); - //if (findStudy != null) - //{ - // //直接返回 - // return ResponseOutput.Ok(); - //} + if (findStudy != null) + { + //直接返回 + return ResponseOutput.Ok(); + }