From 6607b916bb8596a2c474303af01ca6db06c68f65 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Tue, 21 Jun 2022 13:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Reading/Dto/ReadingImageTaskViewModel.cs | 2 +- .../Service/Reading/ReadingImageTaskService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs index 150ed2e9d..886233c8c 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs @@ -80,7 +80,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto public string TypeValue { get; set; } - public string AnswerGroup { get; set; } + public List AnswerGroup { get; set; } } diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs index f3bc4d34f..a36fcc753 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs @@ -170,7 +170,7 @@ namespace IRaCIS.Application.Services var result = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.ReadingQuestionCriterionTrialId && x.IsJudgeQuestion) .Select(x => new GetTrialCriterionJudgeQuestionListOutDto() { - AnswerGroup = x.AnswerGroup, + AnswerGroup = JsonConvert.DeserializeObject>(x.AnswerGroup.IsNullOrEmpty()?"[]": x.AnswerGroup), QuestionName = x.QuestionName, TypeValue =x.TypeValue, ReadingQuestionTrialId = x.Id