Uat_Study
parent
240ee32a6c
commit
865e295b7d
|
@ -1021,7 +1021,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
|
||||
public class GetTrialReadingQuestionOutDto
|
||||
{
|
||||
public Guid ReadingQuestionTrialId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 项目标准Id
|
||||
|
|
|
@ -890,7 +890,7 @@ namespace IRaCIS.Application.Services
|
|||
var formType = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.ReadingQuestionCriterionTrialId).Select(x => x.FormType).FirstOrDefaultAsync();
|
||||
var groupList = new List<GetTrialReadingQuestionOutDto>();
|
||||
|
||||
var qusetionIds = qusetionList.Select(x => x.ReadingQuestionTrialId).ToList();
|
||||
var qusetionIds = qusetionList.Select(x => x.Id).ToList();
|
||||
var tableQuestionList = await _readingTableQuestionTrialRepository.Where(x => qusetionIds.Contains(x.ReadingQuestionId))
|
||||
.ProjectTo<TableQuestionDataInfo>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
if (inDto.FormType != null)
|
||||
|
@ -969,7 +969,8 @@ namespace IRaCIS.Application.Services
|
|||
from leftquestionAnswer in questionAnswerTemp.DefaultIfEmpty()
|
||||
select new GetTrialReadingQuestionOutDto()
|
||||
{
|
||||
ReadingQuestionTrialId = data.Id,
|
||||
|
||||
Id = data.Id,
|
||||
ReadingQuestionCriterionTrialId = data.ReadingQuestionCriterionTrialId,
|
||||
TrialId = data.TrialId,
|
||||
Type = data.Type,
|
||||
|
@ -1365,7 +1366,7 @@ namespace IRaCIS.Application.Services
|
|||
[NonDynamicMethod]
|
||||
public void FindChildQuestion(GetTrialReadingQuestionOutDto item, List<GetTrialReadingQuestionOutDto> questionlists,List<TableQuestionDataInfo> tableQuestions)
|
||||
{
|
||||
item.Childrens = questionlists.Where(x => x.ParentId == item.ReadingQuestionTrialId || (item.Type == "group" && x.Type != "group" && x.ParentId == null && x.GroupName == item.GroupName)).ToList();
|
||||
item.Childrens = questionlists.Where(x => x.ParentId == item.Id || (item.Type == "group" && x.Type != "group" && x.ParentId == null && x.GroupName == item.GroupName)).ToList();
|
||||
|
||||
|
||||
item.Childrens.AddRange(tableQuestions.Where(x => x.ReadingQuestionId == item.Id).Select(x => new GetTrialReadingQuestionOutDto
|
||||
|
|
Loading…
Reference in New Issue