This commit is contained in:
he
2022-06-14 11:53:25 +08:00
parent 310c526c8e
commit 6cffb32af4
6 changed files with 30 additions and 7 deletions
@@ -131,6 +131,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public string TypeValue { get; set; }
public bool IsEnable { get; set; }
public string ParentQuestionName { get; set; }
}
public class ReadingQuestionSystemView
@@ -175,6 +177,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// </summary>
public Guid? ParentId { get; set; }
public string ParentQuestionName { get; set; }
/// <summary>
/// 类型值
@@ -315,8 +315,6 @@ namespace IRaCIS.Application.Services
}
/// <summary>
/// 新增修改项目问题标准(项目)
/// </summary>
@@ -55,7 +55,8 @@ namespace IRaCIS.Core.Application.Service
CreateMap<AddOrUpdateReadingQuestionSystemInDto, ReadingQuestionSystem>();
CreateMap<ReadingQuestionSystem, ReadingQuestionSystemView>();
CreateMap<ReadingQuestionSystem, ReadingQuestionSystemView>()
.ForMember(d => d.ParentQuestionName, u => u.MapFrom(s => s.ParentReadingQuestionSystem==null?string.Empty: s.ParentReadingQuestionSystem.QuestionName));
CreateMap<AddOrUpdateReadingQuestionCriterionTrialInDto, ReadingQuestionCriterionTrial>();
@@ -63,7 +64,8 @@ namespace IRaCIS.Core.Application.Service
CreateMap<AddOrUpdateReadingQuestionTrialInDto, ReadingQuestionTrial>();
CreateMap<ReadingQuestionTrial, ReadingQuestionTrialView>();
CreateMap<ReadingQuestionTrial, ReadingQuestionTrialView>()
.ForMember(d => d.ParentQuestionName, u => u.MapFrom(s => s.ParentReadingQuestionTrial == null ? string.Empty : s.ParentReadingQuestionTrial.QuestionName)); ;
#endregion