修改一版
parent
34c331fef7
commit
346c0e1d76
|
@ -506,6 +506,11 @@ namespace IRaCIS.Application.Services
|
|||
var newTrialTableQuestionList = await _readingTableQuestionSystemRepository.Where(x => x.SystemCriterionId == trialCriterion.ReadingQuestionCriterionSystemId)
|
||||
.ProjectTo<ReadingTrialTableQuestionData>(_mapper.ConfigurationProvider).ToListAsync();
|
||||
|
||||
|
||||
newTrialTableQuestionList.ForEach(x => {
|
||||
x.Id = NewId.NextGuid();
|
||||
});
|
||||
|
||||
var copyNewTrialTableQuestionList = newTrialTableQuestionList.Clone();
|
||||
|
||||
var needAddTableDatas = new List<ReadingTrialTableQuestionData>();
|
||||
|
@ -515,8 +520,6 @@ namespace IRaCIS.Application.Services
|
|||
tableQuestion.TrialId = inDto.TrialId;
|
||||
tableQuestion.TrialCriterionId = trialCriterion.Id;
|
||||
|
||||
tableQuestion.Id = NewId.NextGuid();
|
||||
|
||||
tableQuestion.ReadingQuestionId = copyNewQuestionList.Where(y => y.ReadingQuestionSystemId == x.ReadingQuestionId).Select(y => y.Id).FirstOrDefault();
|
||||
if (tableQuestion.ParentId != null)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue