|
|
@ -72,7 +72,10 @@ public class BuildExamRecordDomainServiceImpl implements BuildExamRecordDomainSe |
|
|
if (!canShowDetails) { |
|
|
if (!canShowDetails) { |
|
|
answerSnapshotDTO.setRightAnswer(null); |
|
|
answerSnapshotDTO.setRightAnswer(null); |
|
|
answerSnapshotDTO.setAnalysis(null); |
|
|
answerSnapshotDTO.setAnalysis(null); |
|
|
}else if(!answerSnapshotDTO.getRightAnswer().contains(",")){ |
|
|
} else if (answerSnapshotDTO.getType() != null |
|
|
|
|
|
&& !QuestionTypeEnum.SHORT_ANSWER.getValue().equals(answerSnapshotDTO.getType()) |
|
|
|
|
|
&& answerSnapshotDTO.getRightAnswer() != null |
|
|
|
|
|
&& !answerSnapshotDTO.getRightAnswer().contains(",")) { |
|
|
String rightAnswer = answerSnapshotDTO.getRightAnswer().chars() |
|
|
String rightAnswer = answerSnapshotDTO.getRightAnswer().chars() |
|
|
.mapToObj(c -> String.valueOf((char) c)) |
|
|
.mapToObj(c -> String.valueOf((char) c)) |
|
|
.collect(Collectors.joining(",")); |
|
|
.collect(Collectors.joining(",")); |
|
|
|