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 + }); } // 项目