This commit is contained in:
he
2022-06-20 17:47:33 +08:00
parent 455d46a3ca
commit 0fdfce06cd
3 changed files with 16 additions and 1 deletions
@@ -112,6 +112,10 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public List<QuestionAnswer> AnswerList { get; set; } = new List<QuestionAnswer>();
}
public class SaveJudgeTaskDto
{
public List<Guid> VisitTaskIds { get; set; }
}
public class QuestionAnswer
{
@@ -167,7 +167,7 @@ namespace IRaCIS.Application.Services
[HttpPost]
public async Task<List<GetTrialCriterionJudgeQuestionListOutDto>> GetTrialCriterionJudgeQuestionList(GetTrialCriterionJudgeQuestionListInDto inDto)
{
var result = await _readingQuestionTrialRepository.Where(x => x.Id == inDto.ReadingQuestionCriterionTrialId && x.IsJudgeQuestion)
var result = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.ReadingQuestionCriterionTrialId && x.IsJudgeQuestion)
.Select(x => new GetTrialCriterionJudgeQuestionListOutDto()
{
AnswerGroup = x.AnswerGroup,