修改一版
parent
070ef85418
commit
3f524341bd
|
@ -58,7 +58,6 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
public int ShowOrder { get; set; }
|
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 TypeValue { get; set; } = string.Empty;
|
||||||
public string ParentTriggerValue { get; set; } = string.Empty;
|
public string ParentTriggerValue { get; set; } = string.Empty;
|
||||||
public int ShowOrder { get; set; }
|
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> AddOrUpdateQCQuestionConfigure(QCQuestionAddOrEdit addOrEditQCQuestionConfigure);
|
||||||
Task<IResponseOutput> DeleteQCQuestionConfigure(Guid qCQuestionConfigureId);
|
Task<IResponseOutput> DeleteQCQuestionConfigure(Guid qCQuestionConfigureId);
|
||||||
Task<List<QCQuestionConfigureView>> GetQCQuestionConfigureList(QCQuestionQuery queryQCQuestionConfigure);
|
Task<List<QCQuestionConfigureView>> GetQCQuestionConfigureList(QCQuestionQuery queryQCQuestionConfigure);
|
||||||
|
|
||||||
|
Task<List<TrialQCQuestionSelect>> GetQCQuestionSelectList(TrialQCQuestionFilterSelect trialQCQuestionFilterSelect);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,6 +7,7 @@
|
||||||
using IRaCIS.Core.Application.Auth;
|
using IRaCIS.Core.Application.Auth;
|
||||||
using IRaCIS.Core.Infra.EFCore;
|
using IRaCIS.Core.Infra.EFCore;
|
||||||
using IRaCIS.Core.Infrastructure;
|
using IRaCIS.Core.Infrastructure;
|
||||||
|
using MassTransit;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
@ -139,6 +140,21 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
await VerifyIsQCConfirmedAsync(trialId);
|
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);
|
var batchConfigList = _mapper.Map<List<TrialQCQuestion>>(batchList);
|
||||||
batchConfigList.ForEach(t => t.TrialId = trialId);
|
batchConfigList.ForEach(t => t.TrialId = trialId);
|
||||||
|
|
||||||
|
|
|
@ -100,10 +100,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public bool? IsConfirm { get; set; }
|
public bool? IsConfirm { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 系统的问题ID
|
|
||||||
/// </summary>
|
|
||||||
public Guid? SystemQuestionId { get; set; }
|
|
||||||
|
|
||||||
public List<TrialQCQuestionAnswer> TrialQCQuestionAnswerList { get; set; }
|
public List<TrialQCQuestionAnswer> TrialQCQuestionAnswerList { get; set; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue