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(); + }