From f802897b14dd301e7c20327bd126125835e2d8cb Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Thu, 23 May 2024 16:19:20 +0800 Subject: [PATCH] =?UTF-8?q?=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, 4 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 032dd2f80..489031af6 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -1272,6 +1272,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common var entity = item.Entity as QCChallenge; + var challengeState= await _dbContext.SubjectVisit.Where(x => x.Id == entity.SubjectVisitId).Select(x => x.ChallengeState).FirstOrDefaultAsync(); + await InsertInspection(entity, type, x => new InspectionConvertDTO() { SubjectVisitId = x.SubjectVisitId, @@ -1281,7 +1283,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common { IsOverTime = entity.IsClosed ? entity.ClosedTime > entity.DeadlineTime : DateTime.Now > entity.DeadlineTime, - }); + ChallengeState= challengeState, + }); } // 质疑 对话