修改一版

This commit is contained in:
he
2022-06-15 09:08:59 +08:00
parent 72870224b9
commit 4413634a44
5 changed files with 69 additions and 8 deletions
@@ -125,8 +125,7 @@ namespace IRaCIS.Application.Services
});
});
await _readingQuestionCriterionSystemRepository.AddRangeAsync(needAddCriterionList);
await _readingQuestionCriterionSystemRepository.SaveChangesAsync();
await _readingQuestionCriterionSystemRepository.SaveChangesAsync();
}
///// <summary>
@@ -183,7 +182,6 @@ namespace IRaCIS.Application.Services
var types = new List<string>()
{
"select","radio"
};
var questionList =await _readingQuestionSystemRepository.Where(x => x.ReadingQuestionCriterionSystemId == inDto.ReadingQuestionCriterionSystemId)
.Where(x=> types.Contains(x.Type))
@@ -258,7 +256,6 @@ namespace IRaCIS.Application.Services
private void SetChildParentQuestion(Guid ReadingQuestionCriterionTrialId, Guid trialId, List<ReadingQuestionSystem> systemQuesitonList,List<ReadingQuestionTrial> needQuestionList)
{
var parentIdIsNullList = systemQuesitonList.Where(x => x.ParentId == null).ToList();
parentIdIsNullList.ForEach(x =>
{
var quesiton = x.Clone();
@@ -421,7 +418,6 @@ namespace IRaCIS.Application.Services
var types = new List<string>()
{
"select","radio"
};
var questionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.ReadingQuestionCriterionTrialId)
.Where(x => types.Contains(x.Type))