diff --git a/IRaCIS.Core.Application/Service/QC/DTO/QCQuestionConfigureViewModel.cs b/IRaCIS.Core.Application/Service/QC/DTO/QCQuestionConfigureViewModel.cs index fc589669..ca65bffb 100644 --- a/IRaCIS.Core.Application/Service/QC/DTO/QCQuestionConfigureViewModel.cs +++ b/IRaCIS.Core.Application/Service/QC/DTO/QCQuestionConfigureViewModel.cs @@ -58,7 +58,6 @@ namespace IRaCIS.Core.Application.Contracts public int ShowOrder { get; set; } - public string ParentTriggerValue { get; set; } } diff --git a/IRaCIS.Core.Application/Service/QC/DTO/TrialQCQuestionConfigureViewModel.cs b/IRaCIS.Core.Application/Service/QC/DTO/TrialQCQuestionConfigureViewModel.cs index 35ceb551..af74165f 100644 --- a/IRaCIS.Core.Application/Service/QC/DTO/TrialQCQuestionConfigureViewModel.cs +++ b/IRaCIS.Core.Application/Service/QC/DTO/TrialQCQuestionConfigureViewModel.cs @@ -92,6 +92,9 @@ namespace IRaCIS.Core.Application.Contracts public string TypeValue { get; set; } = string.Empty; public string ParentTriggerValue { get; set; } = string.Empty; public int ShowOrder { get; set; } + + + public Guid SystemQuestionId { get; set; } } } diff --git a/IRaCIS.Core.Application/Service/QC/Interface/IQCQuestionService.cs b/IRaCIS.Core.Application/Service/QC/Interface/IQCQuestionService.cs index fda12a5c..40a829a1 100644 --- a/IRaCIS.Core.Application/Service/QC/Interface/IQCQuestionService.cs +++ b/IRaCIS.Core.Application/Service/QC/Interface/IQCQuestionService.cs @@ -12,5 +12,7 @@ namespace IRaCIS.Core.Application.Contracts Task AddOrUpdateQCQuestionConfigure(QCQuestionAddOrEdit addOrEditQCQuestionConfigure); Task DeleteQCQuestionConfigure(Guid qCQuestionConfigureId); Task> GetQCQuestionConfigureList(QCQuestionQuery queryQCQuestionConfigure); + + Task> GetQCQuestionSelectList(TrialQCQuestionFilterSelect trialQCQuestionFilterSelect); } } \ No newline at end of file diff --git a/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs b/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs index 43e9e1f0..61fb7cdc 100644 --- a/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs +++ b/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs @@ -7,6 +7,7 @@ using IRaCIS.Core.Application.Auth; using IRaCIS.Core.Infra.EFCore; using IRaCIS.Core.Infrastructure; +using MassTransit; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; @@ -139,6 +140,21 @@ namespace IRaCIS.Core.Application.Contracts await VerifyIsQCConfirmedAsync(trialId); + batchList.ForEach(x => + { + + x.SystemQuestionId = x.Id; + x.Id = NewId.NextGuid(); + + }); + + foreach (var item in batchList.Where(x=>x.ParentId!=null)) + { + + } + + + var batchConfigList = _mapper.Map>(batchList); batchConfigList.ForEach(t => t.TrialId = trialId); diff --git a/IRaCIS.Core.Domain/QC/TrialQCQuestion.cs b/IRaCIS.Core.Domain/QC/TrialQCQuestion.cs index 2f092017..961422a9 100644 --- a/IRaCIS.Core.Domain/QC/TrialQCQuestion.cs +++ b/IRaCIS.Core.Domain/QC/TrialQCQuestion.cs @@ -100,10 +100,7 @@ namespace IRaCIS.Core.Domain.Models public bool? IsConfirm { get; set; } - /// - /// 系统的问题ID - /// - public Guid? SystemQuestionId { get; set; } + public List TrialQCQuestionAnswerList { get; set; }