Uat_Study
he 2022-06-21 13:43:58 +08:00
parent cc6f42264e
commit 6607b916bb
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public string TypeValue { get; set; } public string TypeValue { get; set; }
public string AnswerGroup { get; set; } public List<string> AnswerGroup { get; set; }
} }

View File

@ -170,7 +170,7 @@ namespace IRaCIS.Application.Services
var result = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.ReadingQuestionCriterionTrialId && x.IsJudgeQuestion) var result = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.ReadingQuestionCriterionTrialId && x.IsJudgeQuestion)
.Select(x => new GetTrialCriterionJudgeQuestionListOutDto() .Select(x => new GetTrialCriterionJudgeQuestionListOutDto()
{ {
AnswerGroup = x.AnswerGroup, AnswerGroup = JsonConvert.DeserializeObject<List<string>>(x.AnswerGroup.IsNullOrEmpty()?"[]": x.AnswerGroup),
QuestionName = x.QuestionName, QuestionName = x.QuestionName,
TypeValue =x.TypeValue, TypeValue =x.TypeValue,
ReadingQuestionTrialId = x.Id ReadingQuestionTrialId = x.Id