From 0b707117c6c6a2b83bddf909e89ca494d1c7314a Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Fri, 15 Aug 2025 11:16:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=B4=E6=8A=A4=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=9A=84=E7=A8=BD=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Document/DTO/SystemDocumentViewModel.cs | 4 ++++ .../Service/Document/SystemDocumentService.cs | 1 + .../Service/Document/TrialDocumentService.cs | 1 + 3 files changed, 6 insertions(+) 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());