Commit 974644a5 authored by liudong1993's avatar liudong1993

1

parent 9f372145
......@@ -97,9 +97,11 @@ namespace EduSpider.Services
if (sExamModel != null) {
sExamModel.ScoreList = JsonHelper.Deserialize<List<ExamQScoreModel>>(sExamModel.Content);
foreach (var qitem in sExamModel.ScoreList) {
qitem.Difficulty = qlist.Where(x => x.Sort == qitem.Sort).FirstOrDefault()?.Difficulty ?? "";
qitem.KnowledgePoint = qlist.Where(x => x.Sort == qitem.Sort).FirstOrDefault()?.KnowledgePoint ?? "";
qitem.QScore = qlist.Where(x => x.Sort == qitem.Sort).FirstOrDefault()?.Score ?? 0;
var qmodel = qlist.Where(x => x.Sort == qitem.Sort).FirstOrDefault();
qitem.Difficulty = qmodel?.Difficulty ?? "";
qitem.KnowledgePoint = qmodel?.KnowledgePoint ?? "";
qitem.QScore = qmodel?.Score ?? 0;
qitem.GroupName = qmodel?.GroupName ?? "";
}
}
......@@ -110,6 +112,7 @@ namespace EduSpider.Services
StuId = stuModel.StudId,
StuName = stuModel.StudentName,
examModel.ExamName,
examModel.Type,
sExamModel?.TScore,
sExamModel?.Rank,
sExamModel?.RankRate,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment