修改
This commit is contained in:
@@ -117,6 +117,8 @@ namespace IRaCIS.Core.Application.Service
|
||||
[HttpPost]
|
||||
public async Task<GetTrialQuestionExportResultOutDto> GetTrialQuestionExportResult(GetTrialQuestionExportResultInDto inDto)
|
||||
{
|
||||
|
||||
var criterionInfo = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialReadingCriterionId).FirstNotNullAsync();
|
||||
var questionList = await _readingQuestionTrialRepository.Where(x => x.Type != ReadingQestionType.Group && x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId)
|
||||
.OrderBy(x => x.ShowOrder).Select(x => new TrialQuestionExport()
|
||||
{
|
||||
@@ -124,6 +126,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
QuestionName = _userInfo.IsEn_Us ? x.QuestionEnName : x.QuestionName,
|
||||
ExportResult = x.ExportResult,
|
||||
ShowOrder = x.ShowOrder,
|
||||
IsTableQuestion=false,
|
||||
CDISCCode = x.CDISCCode,
|
||||
}).ToListAsync();
|
||||
|
||||
@@ -137,6 +140,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
QuestionName = _userInfo.IsEn_Us ? x.QuestionEnName : x.QuestionName,
|
||||
ExportResult = x.ExportResult,
|
||||
ShowOrder = x.ShowOrder,
|
||||
IsTableQuestion=true,
|
||||
CDISCCode = x.CDISCCode,
|
||||
}).ToListAsync();
|
||||
|
||||
@@ -159,6 +163,8 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
return new GetTrialQuestionExportResultOutDto()
|
||||
{
|
||||
CriterionType = criterionInfo.CriterionType,
|
||||
CriterionGroup = criterionInfo.CriterionGroup,
|
||||
DicList = dicList,
|
||||
QuestionList = questionList
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user