修改一版

Uat_Study
he 2022-07-14 18:03:19 +08:00
parent b5e3b22a3e
commit 2a91a9c7a9
2 changed files with 4 additions and 3 deletions

View File

@ -111,6 +111,9 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public string QuestionName { get; set; } public string QuestionName { get; set; }
public string PageName { get; set; }
public string TypeValue { get; set; } public string TypeValue { get; set; }
/// <summary> /// <summary>

View File

@ -267,19 +267,17 @@ namespace IRaCIS.Application.Services
AnswerGroup = JsonConvert.DeserializeObject<List<string>>(x.AnswerGroup.IsNullOrEmpty()?"[]": x.AnswerGroup), AnswerGroup = JsonConvert.DeserializeObject<List<string>>(x.AnswerGroup.IsNullOrEmpty()?"[]": x.AnswerGroup),
AnswerCombination = JsonConvert.DeserializeObject<List<AnswerCombinationDto>>(x.AnswerCombination.IsNullOrEmpty() ? "[]" : x.AnswerCombination), AnswerCombination = JsonConvert.DeserializeObject<List<AnswerCombinationDto>>(x.AnswerCombination.IsNullOrEmpty() ? "[]" : x.AnswerCombination),
QuestionName = x.QuestionName, QuestionName = x.QuestionName,
PageName=x.ReadingCriterionPage.PageName,
TypeValue =x.TypeValue, TypeValue =x.TypeValue,
JudgeType=x.JudgeType, JudgeType=x.JudgeType,
ReadingQuestionTrialId = x.Id ReadingQuestionTrialId = x.Id
}).ToListAsync(); }).ToListAsync();
var signTime = await _trialRepository.Where(x => x.Id == inDto.TrialId).Select(x => x.ReadingInfoSignTime).FirstOrDefaultAsync(); var signTime = await _trialRepository.Where(x => x.Id == inDto.TrialId).Select(x => x.ReadingInfoSignTime).FirstOrDefaultAsync();
return (result, new return (result, new
{ {
IsSign = signTime != null, IsSign = signTime != null,
}); });
} }