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))) {