Uat_Study
he 2022-08-05 09:13:15 +08:00
parent 18541062c2
commit d5834a84d8
2 changed files with 2 additions and 2 deletions

View File

@ -304,7 +304,7 @@ namespace IRaCIS.Core.Application.Contracts
}
public class GetQCQuestionAnswerInDto
{
public Guid SubjectVisit { get; set; }
public Guid SubjectVisitId { get; set; }
public Guid TrialId { get; set; }

View File

@ -587,7 +587,7 @@ namespace IRaCIS.Core.Application.Image.QA
public async Task<List<QCQuestionAnswer>> GetQCQuestionAnswer(GetQCQuestionAnswerInDto inDto)
{
var questionAnswerlist =await (from data in _trialQCQuestionRepository.Where(x => x.TrialId == inDto.TrialId && x.IsEnable)
join answer in _trialQCQuestionAnswerRepository.AsQueryable() on data.Id equals answer.TrialQCQuestionConfigureId into answertemp
join answer in _trialQCQuestionAnswerRepository.Where(x=>x.SubjectVisitId==inDto.SubjectVisitId&&x.QCProcessEnum==inDto.QCProcessEnum&&x.CurrentQCEnum==inDto.CurrentQCEnum).AsQueryable() on data.Id equals answer.TrialQCQuestionConfigureId into answertemp
from leftanswer in answertemp.DefaultIfEmpty()
select new QCQuestionAnswer()
{