From 899ef3034f1482cdf07f8419b3c58d23eb0a1438 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Tue, 15 Jul 2025 15:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=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 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 78cdbb791..0339ecd2c 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -3317,14 +3317,15 @@ namespace IRaCIS.Core.Infra.EFCore.Common var liverSegmentation = await _dbContext.ReadingTableQuestionAnswer.Where(x => x.RowId == entity.RowId && x.ReadingTableQuestionTrial.QuestionMark == QuestionMark.liverSegmentation).Select(x => x.Answer).FirstOrDefaultAsync(); var generalId=new Guid(); - if (entity.TableQuestionId == null && entity.QuestionId == null) + if (entity.MarkId != null) + { + generalId = entity.MarkId.Value; + } + else if (entity.TableQuestionId == null && entity.QuestionId == null) { generalId = entity.Id; } - else if(entity.MarkId!=null) - { - generalId= entity.MarkId.Value; - } + else { generalId = IdentifierHelper.CreateGuid(entity.VisitTaskId.ToString(), entity.QuestionId.ToString(), entity.RowId.ToString(), entity.TableQuestionId.ToString(), "ReadingTaskQuestionMark");