From b15505f2baaf8e258bdd5d49a036792b0bfda0fa Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 30 Aug 2022 09:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=95=B0=E6=8D=AE=E4=B8=8D?= =?UTF-8?q?=E5=8C=BA=E5=88=86=E6=8E=A5=E5=8F=A3?= 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, 12 insertions(+), 3 deletions(-) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 7f29029ff..98cf68013 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -469,7 +469,10 @@ namespace IRaCIS.Core.Infra.EFCore.Common var userTypeNameList = await _dbContext.UserType.Where(x => needConfirmedUserTypeIdList.Contains(x.Id)).Select(x => x.UserTypeShortName).ToListAsync(); var userTypeName = string.Join(",", userTypeNameList); - await InsertInspection(entity, type, null, new + await InsertInspection(entity, type, x => new InspectionConvertDTO() + { + IsDistinctionInterface = true + }, new { NeedConfirmedUserType = userTypeName, }); @@ -495,7 +498,10 @@ namespace IRaCIS.Core.Infra.EFCore.Common var usertypeNames = await _dbContext.UserType.Where(x => needConfirmedUserTypeIdList.Contains(x.Id)).Select(x => x.UserTypeShortName).ToListAsync(); var usertypeName = string.Join(",", usertypeNames); await InsertInspection(entity, type, x => new InspectionConvertDTO() - { ObjectRelationParentId = x.TrialId }, + { + IsDistinctionInterface=true, + ObjectRelationParentId = x.TrialId + }, new { NeedConfirmedUserType = usertypeName, @@ -532,7 +538,10 @@ namespace IRaCIS.Core.Infra.EFCore.Common // 签名模板 foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(SystemBasicData))) { - await InsertInspection(item.Entity as SystemBasicData, type); + await InsertInspection(item.Entity as SystemBasicData, type, x => new InspectionConvertDTO() + { + IsDistinctionInterface=false + }); } // 项目