Uat_Study
he 2022-08-26 14:58:53 +08:00
parent 6a1052a1fe
commit f6d65b5abe
2 changed files with 24 additions and 2 deletions

View File

@ -1010,7 +1010,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// </summary> /// </summary>
public QuestionMark? QuestionMark { get; set; } public QuestionMark? QuestionMark { get; set; }
public List<Guid> RelationIds { get; set; } public List<GetSystemReadingQuestionOutDto> RelationQuestions { get; set; }

View File

@ -1064,7 +1064,29 @@ namespace IRaCIS.Application.Services
DataTableColumn = x.DataTableColumn, DataTableColumn = x.DataTableColumn,
LesionType = item.LesionType, LesionType = item.LesionType,
QuestionName = x.QuestionName, QuestionName = x.QuestionName,
RelationIds = tableQuestions.Where(z => (z.DependParentId ?? default(Guid)) == x.Id).Select(z => z.Id).ToList(), RelationQuestions = tableQuestions.Where(z => (z.DependParentId ?? default(Guid)) == x.Id).Select(x => new GetSystemReadingQuestionOutDto
{
Childrens = new List<GetSystemReadingQuestionOutDto>(),
ShowOrder = x.ShowOrder,
GroupName = string.Empty,
Id = x.Id,
Type = x.Type,
TableQuestionType = x.TableQuestionType,
DependParentId = x.DependParentId,
IsDepend = x.IsDepend,
QuestionMark = x.QuestionMark,
TypeValue = x.TypeValue,
RelevanceId = x.RelevanceId,
RelevanceValue = x.RelevanceValue,
ImageCount = 0,
ParentId = item.Id,
DataTableColumn = x.DataTableColumn,
LesionType = item.LesionType,
QuestionName = x.QuestionName,
RelationQuestions = new List<GetSystemReadingQuestionOutDto>(),
Remark = x.Remark,
}).ToList(),
Remark = x.Remark, Remark = x.Remark,
})); }));