diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs index 922eb2731..5779c8139 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs @@ -51,6 +51,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto public string DataTableName { get; set; } public string DataTableColumn { get; set; } + public int? DependShowOrder { get; set; } + /// /// 表格问题类型 /// diff --git a/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs b/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs index cba6f4a57..347923918 100644 --- a/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs @@ -51,7 +51,8 @@ namespace IRaCIS.Core.Application.Service #region 阅片问题 - CreateMap(); + CreateMap() + .ForMember(d => d.DependShowOrder, u => u.MapFrom(s => s.DependParentQuestion.ShowOrder)); CreateMap(); diff --git a/IRaCIS.Core.Domain/Reading/ReadingTableQuestionSystem.cs b/IRaCIS.Core.Domain/Reading/ReadingTableQuestionSystem.cs index 3d4267d41..46db56689 100644 --- a/IRaCIS.Core.Domain/Reading/ReadingTableQuestionSystem.cs +++ b/IRaCIS.Core.Domain/Reading/ReadingTableQuestionSystem.cs @@ -132,6 +132,10 @@ namespace IRaCIS.Core.Domain.Models /// public QuestionMark? QuestionMark { get; set; } + + + [ForeignKey("DependParentId")] + public ReadingTableQuestionSystem DependParentQuestion { get; set; } }