From 05189b4e5af264da3648e970bbae2138d6f61c2e Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Fri, 25 Apr 2025 17:19:12 +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 --- .../Common/AuditingData.cs | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 4cc189e4f..5a2278572 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -1890,6 +1890,44 @@ namespace IRaCIS.Core.Infra.EFCore.Common } + + foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(SubjectVisitImageBackRecord))) + { + + var type = GetEntityAuditOpt(item); + + var entity = item.Entity as SubjectVisitImageBackRecord; + + var extraIdentification = string.Empty; + + var isDistinctionInterface = true; + + var reason = string.Empty; + + #region 处理标识 + + + + #endregion + var SubjectId = await _dbContext.SubjectVisit.Where(x => x.Id == entity.SubjectVisitId).Select(x => x.SubjectId).FirstOrDefaultAsync(); + + await InsertInspection(item.Entity as SubjectVisitImageBackRecord, type, x => new InspectionConvertDTO() + { + IsDistinctionInterface = isDistinctionInterface, + Reason = reason, + + //Subject的信息 找离的最近的Subject稽查信息 + ObjectRelationParentId = x.SubjectVisitId, + + SubjectId = SubjectId, + SubjectVisitId = x.Id, + + + ExtraIndentification = extraIdentification, + + } + ); + } // 访视 foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(SubjectVisit))) {