From 034a0e8bbbd8aaa479d3df62a8821ce994325668 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Wed, 30 Jul 2025 14:43:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A8=BD=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index b3d9cf10f..fd12d9ab2 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -1325,6 +1325,17 @@ namespace IRaCIS.Core.Infra.EFCore.Common var entity = item.Entity as ReadingMedicalReviewDialog; + bool isHaveQuestion = false; + if (entitys.Any(x => x.Entity.GetType() == typeof(TaskMedicalReview))) + { + isHaveQuestion = entitys.Where(x => x.Entity.GetType() == typeof(TaskMedicalReview)).Select(x => x.Entity as TaskMedicalReview).Select(x => x.IsHaveQuestion).FirstOrDefault(); + } + else + { + isHaveQuestion = await _dbContext.TaskMedicalReview.Where(x => x.Id == entity.TaskMedicalReviewId).Select(t => t.IsHaveQuestion).FirstOrDefaultAsync(); + } + + var extraIdentification = string.Empty; //失效的时候 不区分标识 @@ -1341,11 +1352,13 @@ namespace IRaCIS.Core.Infra.EFCore.Common { IsDistinctionInterface = false, VisitTaskId = entity.VisitTaskId, - + ObjectRelationParentId = entity.TaskMedicalReviewId, ExtraIndentification = extraIdentification + },new { + IsHaveQuestion= isHaveQuestion, }); }