From a6b81b038f2ab12d8eb49974c12762ee36e2d7cb Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 3 Mar 2025 16:49:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Document/DTO/TrialNormalRecordViewModel.cs | 4 +++- IRaCIS.Core.Application/Service/Document/_MapConfig.cs | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Document/DTO/TrialNormalRecordViewModel.cs b/IRaCIS.Core.Application/Service/Document/DTO/TrialNormalRecordViewModel.cs index 0fe1f6cdd..2163a4b89 100644 --- a/IRaCIS.Core.Application/Service/Document/DTO/TrialNormalRecordViewModel.cs +++ b/IRaCIS.Core.Application/Service/Document/DTO/TrialNormalRecordViewModel.cs @@ -15,7 +15,9 @@ public class TrialNormalRecordView : TrialNormalRecordAddOrEdit public DateTime CreateTime { get; set; } public DateTime UpdateTime { get; set; } - + + public string FileName { get; set; } + } public class BatchAddTrialNormalRecordInDto diff --git a/IRaCIS.Core.Application/Service/Document/_MapConfig.cs b/IRaCIS.Core.Application/Service/Document/_MapConfig.cs index 7eb653d81..ad01a2a0f 100644 --- a/IRaCIS.Core.Application/Service/Document/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Document/_MapConfig.cs @@ -114,7 +114,8 @@ namespace IRaCIS.Core.Application.Service //.ForMember(d => d.WordFileRecord.TrialFileTypeId, c => c.MapFrom(t => t.TrialFileTypeId)) //.ForMember(d => d.PDFFileRecord.TrialFileTypeId, c => c.MapFrom(t => t.TrialFileTypeId)); - CreateMap(); + CreateMap() + .ForMember(d => d.FileName, c => c.MapFrom(t => t.TrialFileRecord.FileName)); CreateMap().ReverseMap(); CreateMap();