修改一版

This commit is contained in:
he
2022-08-04 14:53:23 +08:00
parent 070ef85418
commit 3f524341bd
5 changed files with 22 additions and 5 deletions
@@ -58,7 +58,6 @@ namespace IRaCIS.Core.Application.Contracts
public int ShowOrder { get; set; }
public string ParentTriggerValue { get; set; }
}
@@ -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; }
}
}
@@ -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);
}
}
@@ -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);