From adf873639c1ee434e73033968d409bb6d266d36a Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 24 Mar 2025 16:46:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A8=BD=E6=9F=A5=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 30c85fba4..f93f16636 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -2079,12 +2079,15 @@ namespace IRaCIS.Core.Infra.EFCore.Common var noneDicomStudy = await _dbContext.NoneDicomStudy.Where(x => x.Id == entity.NoneDicomStudyId).Include(x=>x.Subject).FirstNotNullAsync(); + + var subject=await _dbContext.Subject.Where(x => x.Id == noneDicomStudy.SubjectId).FirstNotNullAsync(); + await InsertInspection(item.Entity as NoneDicomStudyFile, type, x => new InspectionConvertDTO() { TrialId = trialid, SubjectVisitId = noneDicomStudy.SubjectVisitId, SubjectId = noneDicomStudy.SubjectId, - TrialSiteId = noneDicomStudy.Subject.TrialSiteId, + TrialSiteId = subject.TrialSiteId, ObjectRelationParentId = x.VisitTaskId, ExtraIndentification = extraIdentification }, new