diff --git a/src/main/java/club/joylink/rtss/services/paper/PaperUserSubmitAnswerService.java b/src/main/java/club/joylink/rtss/services/paper/PaperUserSubmitAnswerService.java index 4a7c79412..6b2c7b4b1 100644 --- a/src/main/java/club/joylink/rtss/services/paper/PaperUserSubmitAnswerService.java +++ b/src/main/java/club/joylink/rtss/services/paper/PaperUserSubmitAnswerService.java @@ -146,7 +146,7 @@ public class PaperUserSubmitAnswerService { List details = this.training2Service.finishTraining2(req.getGroup(),user,req.getTrainAnswerDetail().getTrainDetail()); boolean allHasRule = details.stream().allMatch(PaperTrainAnswerDetail::isHaveRule); BusinessExceptionAssertEnum.DATA_ERROR.assertTrue(allHasRule,"场景实训没有对应的评分规则"); - int sumScore = details.stream().mapToInt(d->d.getScore().intValue()).sum(); + int sumScore = details.stream().mapToInt(d->d.getRuleScore().intValue()).sum(); for (PaperTrainAnswerDetail detail : details) { detail.setScore(detail.getScore());