From ec25bcaf09718db953fa0181554b5da9f0966f5d Mon Sep 17 00:00:00 2001
From: he <10978375@qq.com>
Date: Tue, 11 Oct 2022 09:20:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Service/Reading/Dto/ReadingImageTaskViewModel.cs | 4 ++++
.../Service/Reading/ReadingImageTaskService.cs | 7 +++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs
index e7fc8bd81..644473483 100644
--- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs
@@ -1050,6 +1050,10 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
}
+ public class SubmitTableQuestionOutDto
+ {
+ public Guid RowId { get; set; }
+ }
public class SubmitTableQuestionInDto
{
public Guid QuestionId { get; set; }
diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs
index 77ff8d1f0..5c7f40b3b 100644
--- a/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs
+++ b/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs
@@ -2194,8 +2194,9 @@ namespace IRaCIS.Application.Services
///
///
[HttpPost]
- public async Task SubmitTableQuestion(SubmitTableQuestionInDto inDto)
+ public async Task SubmitTableQuestion(SubmitTableQuestionInDto inDto)
{
+ SubmitTableQuestionOutDto result = new SubmitTableQuestionOutDto();
await VerifyTaskIsSign(inDto.VisitTaskId);
var tableQuestionIds = inDto.AnswerList.Select(x => x.TableQuestionId).ToList();
@@ -2269,6 +2270,8 @@ namespace IRaCIS.Application.Services
rowInfo.SeriesId = inDto.SeriesId;
rowInfo.VisitTaskId = inDto.VisitTaskId;
+ result.RowId = rowInfo.Id;
+
List answerList = inDto.AnswerList.Select(x => new ReadingTableQuestionAnswer()
{
Answer = x.Answer,
@@ -2300,7 +2303,7 @@ namespace IRaCIS.Application.Services
- return ResponseOutput.Ok(true);
+ return result;
}
///