Uat_Study
parent
73504b695d
commit
30f50d9476
|
@ -175,7 +175,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
|
||||
public class ChangeDicomReadingQuestionAnswerDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid QuestionId { get; set; }
|
||||
|
||||
public string Answer { get; set; }
|
||||
}
|
||||
|
|
|
@ -120,7 +120,7 @@ namespace IRaCIS.Application.Services
|
|||
var taskInfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).FirstNotNullAsync();
|
||||
var criterionId = await _readingQuestionCriterionTrialRepository.Where(x => x.IsConfirm && x.TrialId == taskInfo.TrialId).Select(x => x.Id).FirstOrDefaultAsync();
|
||||
|
||||
var questionIds = inDto.Answers.Select(x => x.Id).ToList();
|
||||
var questionIds = inDto.Answers.Select(x => x.QuestionId).ToList();
|
||||
await _readingTaskQuestionAnswerRepository.BatchDeleteNoTrackingAsync(x => x.VisitTaskId == inDto.VisitTaskId && questionIds.Contains(x.ReadingQuestionTrialId));
|
||||
|
||||
var needAddAnswer = inDto.Answers.Select(x => new ReadingTaskQuestionAnswer()
|
||||
|
@ -129,7 +129,7 @@ namespace IRaCIS.Application.Services
|
|||
Answer = x.Answer,
|
||||
SubjectId = taskInfo.SubjectId,
|
||||
ReadingQuestionCriterionTrialId = criterionId,
|
||||
ReadingQuestionTrialId = x.Id,
|
||||
ReadingQuestionTrialId = x.QuestionId,
|
||||
TrialId = taskInfo.TrialId,
|
||||
VisitTaskId = inDto.VisitTaskId,
|
||||
|
||||
|
|
Loading…
Reference in New Issue