Commit 968e3bb2 by wqc

多选题答题计算1

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