|
@@ -56,12 +56,12 @@ public class PaperQuestionAnswerServiceImpl extends ServiceImpl<PaperQuestionAns
|
|
|
if (QuestionType.MULTI.getCode().equals(question.getType())) {
|
|
|
//找出正确答案
|
|
|
answerList = examService.findRightList(answerList);
|
|
|
- double pathScore = NumberUtil.div(question.getScore().intValue(), answerList.size(), 2);
|
|
|
+ double pathScore = NumberUtil.div(question.getScore().doubleValue(), answerList.size(), 2);
|
|
|
answerList.stream().forEach(answer ->
|
|
|
//生成试卷试题答案
|
|
|
paperQuestionAnswerList.add(generatePaperQuestionAnswer(paperId, question.getId(), answer.getId(), pathScore)));
|
|
|
} else if (QuestionType.BLANK.getCode().equals(question.getType())) {
|
|
|
- double pathScore = NumberUtil.div(question.getScore().intValue(), answerList.size(), 2);
|
|
|
+ double pathScore = NumberUtil.div(question.getScore().doubleValue(), answerList.size(), 2);
|
|
|
answerList.stream().forEach(answer ->
|
|
|
paperQuestionAnswerList.add(generatePaperQuestionAnswer(paperId, question.getId(), answer.getId(), pathScore)));
|
|
|
}
|