修改一版

Uat_Study
he 2022-10-11 09:20:28 +08:00
parent db63148ae0
commit ec25bcaf09
2 changed files with 9 additions and 2 deletions

View File

@ -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; }

View File

@ -2194,8 +2194,9 @@ namespace IRaCIS.Application.Services
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<IResponseOutput> SubmitTableQuestion(SubmitTableQuestionInDto inDto)
public async Task<SubmitTableQuestionOutDto> 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<ReadingTableQuestionAnswer> answerList = inDto.AnswerList.Select(x => new ReadingTableQuestionAnswer()
{
Answer = x.Answer,
@ -2300,7 +2303,7 @@ namespace IRaCIS.Application.Services
return ResponseOutput.Ok(true);
return result;
}
/// <summary>