diff --git a/IRaCIS.Core.Application/Service/Document/DTO/SystemDocumentViewModel.cs b/IRaCIS.Core.Application/Service/Document/DTO/SystemDocumentViewModel.cs index dd2a41d35..451dbb1f5 100644 --- a/IRaCIS.Core.Application/Service/Document/DTO/SystemDocumentViewModel.cs +++ b/IRaCIS.Core.Application/Service/Document/DTO/SystemDocumentViewModel.cs @@ -35,6 +35,8 @@ namespace IRaCIS.Core.Application.Contracts public bool OffLine { get; set; } public Guid SystemDocumentId { get; set; } + + public DateTime UpdateTime { get; set; } } public class SystemDocumentAttachmentQuery : PageInput @@ -397,6 +399,8 @@ namespace IRaCIS.Core.Application.Contracts public bool OffLine { get; set; } public Guid TrialDocumentId { get; set; } + + public DateTime UpdateTime { get; set; } } public class TrialDocumentAttachmentQuery : PageInput diff --git a/IRaCIS.Core.Application/Service/Document/SystemDocumentService.cs b/IRaCIS.Core.Application/Service/Document/SystemDocumentService.cs index efea64699..7f26fd19d 100644 --- a/IRaCIS.Core.Application/Service/Document/SystemDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/SystemDocumentService.cs @@ -60,6 +60,7 @@ namespace IRaCIS.Core.Application.Services + addOrEditSystemDocumentAttachment.UpdateTime = DateTime.Now; var entity = await _systemDocumentAttachmentRepository.InsertOrUpdateAsync(addOrEditSystemDocumentAttachment, true); return ResponseOutput.Ok(entity.Id.ToString()); diff --git a/IRaCIS.Core.Application/Service/Document/TrialDocumentService.cs b/IRaCIS.Core.Application/Service/Document/TrialDocumentService.cs index 8a44834a8..7e5197ce2 100644 --- a/IRaCIS.Core.Application/Service/Document/TrialDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/TrialDocumentService.cs @@ -72,6 +72,7 @@ namespace IRaCIS.Core.Application.Services { // 在此处拷贝automapper 映射 + addOrEditTrialDocumentAttachment.UpdateTime = DateTime.Now; var entity = await _trialDocumentAttachmentRepository.InsertOrUpdateAsync(addOrEditTrialDocumentAttachment, true); return ResponseOutput.Ok(entity.Id.ToString());