Commit 968e3bb2 by wqc

多选题答题计算1

parent 01bd69f5
......@@ -148,9 +148,9 @@ public class QuestionService {
for (String s : split) {
String str= s.replace("\"", "");
list.add(str);
}
String collect = list.stream().collect(Collectors.joining(","));
if (!collect.equals(answer)){
boolean remove = answerList.remove(str);
if (!remove) {
Map<String, Object> map = new HashMap<>();
map.put("subject", question.getSubject());
map.put("answer", question.getAnswer());
......@@ -160,6 +160,7 @@ public class QuestionService {
wrongQuestionList.add(map);
break;
}
}
}else {
for (Object o : answerArr) {
String s = Convert.toStr(o, "");
......
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