From 4a611cd12014c9e3491c7239cccc68bbe9bca5cb Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Thu, 30 Jun 2022 14:07:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Reading/Dto/ReadingMedicineQuestionViewModel.cs | 4 +++- IRaCIS.Core.Application/Service/Reading/_MapConfig.cs | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingMedicineQuestionViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingMedicineQuestionViewModel.cs index 01b544be0..7b44bd73f 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingMedicineQuestionViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingMedicineQuestionViewModel.cs @@ -180,7 +180,9 @@ namespace IRaCIS.Core.Application.ViewModel public int ShowOrder { get; set; } public Guid? ParentId { get; set; } public bool? IsConfirm { get; set; } - } + + public int? ParentShowOrder { get; set; } + } ///ReadingMedicineTrialQuestionQuery 列表查询参数模型 public class ReadingMedicineTrialQuestionQuery diff --git a/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs b/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs index e8c3ae35b..e3fb7bc38 100644 --- a/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs @@ -87,7 +87,8 @@ namespace IRaCIS.Core.Application.Service CreateMap(); CreateMap(); - CreateMap(); + CreateMap() + .ForMember(x=>x.ParentShowOrder,y=>y.MapFrom(n=>n.ParentQuestion.ShowOrder)); #endregion