修改一版
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user