修改一版

Uat_Study
he 2022-08-26 18:11:07 +08:00
parent 34c331fef7
commit 346c0e1d76
1 changed files with 5 additions and 2 deletions

View File

@ -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)
{