From 5c29eb586005d685886783f1a9f167d619d3a575 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Thu, 30 Apr 2026 16:44:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E4=BF=AE=E6=94=B9?= 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, 5 insertions(+) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 3b91a7198..3aa70dbaf 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -3650,8 +3650,13 @@ namespace IRaCIS.Core.Infra.EFCore.Common var visitTask = await _dbContext.VisitTask.Where(x => x.Id == entity.VisitTaskId).FirstOrDefaultAsync(); + + var segmentation = await _dbContext.Segmentation.Where(x => x.Id == entity.SegmentationId).FirstOrDefaultAsync(); + await InsertInspection(entity, type, x => new InspectionConvertDTO() { + SubjectId= segmentation != null ? segmentation.SubjectId : null, + SubjectVisitId = segmentation != null ? segmentation.SubjectVisitId : null, TrialReadingCriterionId = visitTask != null ? visitTask.TrialReadingCriterionId : null, }); }