diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 3e1fef586..d52c6b407 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -144,8 +144,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common FileTypeId = systemDocument.FileTypeId, Name = systemDocument.Name, - CreateTime = systemDocument.CreateTime, - IsSigned = "是",// 是否签署 添加了就是签署了 + UploadTime = systemDocument.CreateTime, + + CreateUserName = _userInfo.UserName, + UserType = _userInfo.UserTypeShortName, + IsSigned = true,// 是否签署 添加了就是签署了 }); } @@ -154,25 +157,20 @@ namespace IRaCIS.Core.Infra.EFCore.Common { var entity = item.Entity as TrialDocUserTypeConfirmedUser; - var trialId = await _dbContext.TrialDocument.Where(x => x.Id == entity.TrialDocumentId).Select(t => t.TrialId).FirstOrDefaultAsync(); - - //var trialDocument = await _dbContext.TrialDocument.Where(x => x.Id == entity.TrialDocumentId).FirstOrDefaultAsync(); - //var trialid = trialDocument.TrialId; + var trialDoc = await _dbContext.TrialDocument.Where(x => x.Id == entity.TrialDocumentId).FirstOrDefaultAsync(); await InsertInspection(entity as TrialDocUserTypeConfirmedUser, type, x => new InspectionConvertDTO() { - TrialId = trialId, + TrialId = trialDoc.TrialId, + ObjectRelationParentId = x.TrialDocumentId }, new { - //FileTypeId = trialDocument.FileTypeId, - //Name = trialDocument.Name, - //CreateTime = trialDocument.CreateTime, - //IsSigned = "是",// 是否签署 添加了就是签署了 + UploadTime = trialDoc.CreateTime, - CreateUserName=_userInfo.UserName, + CreateUserName = _userInfo.UserName, UserType=_userInfo.UserTypeShortName, IsSigned =true });