This commit is contained in:
he
2024-11-07 10:45:32 +08:00
parent b89cfeb90c
commit f1a6ca24be
2 changed files with 2 additions and 2 deletions
@@ -274,14 +274,12 @@ namespace IRaCIS.Core.Application.Service
x.Childrens = new List<GetSystemReadingQuestionOutDto>();
x.GroupName = string.Empty;
x.ImageCount = 0;
x.ParentId = item.Id;
var relationQuestions= _mapper.Map<List<GetSystemReadingQuestionOutDto>>(tableQuestions.Where(z => (z.DependParentId ?? default(Guid)) == x.Id).ToList());
relationQuestions.ForEach(y =>
{
y.Childrens = new List<GetSystemReadingQuestionOutDto>();
y.GroupName = string.Empty;
y.ImageCount = 0;
y.ParentId = item.Id;
y.LesionType = item.LesionType;
y.RelationQuestions = new List<GetSystemReadingQuestionOutDto>();
});