Commit 56a324ff authored by 黄奎's avatar 黄奎

页面修改

parent 9ababc95
......@@ -822,7 +822,7 @@ namespace Edu.Module.Exam
item.Answer,
QuestionContentObj,
QuestionAnswerList = quesAnswerList,
StundetAnswer = new List<string>(),
StudentAnswer = new List<string>(),
};
list.Add(obj);
}
......@@ -988,7 +988,11 @@ namespace Edu.Module.Exam
Common.Plugin.LogHelper.Write(ex, "GetAppQuestionCategoryListModule_Answer:" + Common.Plugin.JsonHelper.Serialize(item));
}
}
List<string> studentAnswerList = new List<string>();
if (!string.IsNullOrEmpty(tempQuestion?.StudentAnswer))
{
studentAnswerList = JsonHelper.DeserializeObject<List<string>>(tempQuestion?.StudentAnswer);
}
var obj = new
{
item.QuestionId,
......@@ -1002,10 +1006,9 @@ namespace Edu.Module.Exam
item.AnswerParse,
QuestionContentObj,
QuestionAnswerList = quesAnswerList,
StundetAnswer = new List<string>(),
StudentAnswer = studentAnswerList,
item.Answer,
Score,
StudentAnswer= tempQuestion?.StudentAnswer??"",
IsAnswer=tempQuestion?.IsAnswer??0,
IsWrong= tempQuestion?.IsWrong??0,
StudentScore = tempQuestion?.StudentScore ?? 0,
......
......@@ -1202,7 +1202,7 @@ namespace Edu.WebApi.Controllers.Exam
AnswerParse=sObj.GetStringValue("AnswerParse"),
IsAnswer=sObj.GetInt("IsAnswer"),
IsWrong=sObj.GetInt("IsWrong"),
StudentAnswer=sObj.GetStringValue("StudentAnswer"),
StudentAnswer = sObj.GetStringValue("StudentAnswer"),
Score=sObj.GetDecimal("Score"),
};
model.ExamDetailsList.Add(sModel);
......
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