修改一版

Uat_Study
he 2022-08-04 14:53:23 +08:00
parent 070ef85418
commit 3f524341bd
5 changed files with 22 additions and 5 deletions

View File

@ -58,7 +58,6 @@ namespace IRaCIS.Core.Application.Contracts
public int ShowOrder { get; set; }
public string ParentTriggerValue { get; set; }
}

View File

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

View File

@ -12,5 +12,7 @@ namespace IRaCIS.Core.Application.Contracts
Task<IResponseOutput> AddOrUpdateQCQuestionConfigure(QCQuestionAddOrEdit addOrEditQCQuestionConfigure);
Task<IResponseOutput> DeleteQCQuestionConfigure(Guid qCQuestionConfigureId);
Task<List<QCQuestionConfigureView>> GetQCQuestionConfigureList(QCQuestionQuery queryQCQuestionConfigure);
Task<List<TrialQCQuestionSelect>> GetQCQuestionSelectList(TrialQCQuestionFilterSelect trialQCQuestionFilterSelect);
}
}

View File

@ -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<List<TrialQCQuestion>>(batchList);
batchConfigList.ForEach(t => t.TrialId = trialId);

View File

@ -100,10 +100,7 @@ namespace IRaCIS.Core.Domain.Models
public bool? IsConfirm { get; set; }
/// <summary>
/// 系统的问题ID
/// </summary>
public Guid? SystemQuestionId { get; set; }
public List<TrialQCQuestionAnswer> TrialQCQuestionAnswerList { get; set; }