修改
This commit is contained in:
@@ -1131,7 +1131,7 @@ namespace IRaCIS.Application.Services
|
||||
});
|
||||
|
||||
var thisAnswer = tableAnswers.Where(x => x.QuestionId == item.Id).ToList();
|
||||
var orders = thisAnswer.Select(x => x.RowIndex).Distinct().OrderBy(x => x).ToList();
|
||||
var orders = thisAnswer.OrderBy(x => x.RowIndex).Select(x=>x.RowId).ToList();
|
||||
item.TableQuestions.Answers = new List<Dictionary<string, string>>();
|
||||
|
||||
|
||||
@@ -1144,7 +1144,7 @@ namespace IRaCIS.Application.Services
|
||||
foreach (var x in orders)
|
||||
{
|
||||
Dictionary<string, string> answers = new Dictionary<string, string>();
|
||||
var rowInfo = tableAnsweRowInfos.Where(y => y.RowIndex == x && y.QuestionId == item.Id).FirstOrDefault();
|
||||
var rowInfo = tableAnsweRowInfos.Where(y => y.Id==x).FirstOrDefault();
|
||||
if (rowInfo == null)
|
||||
{
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user