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