diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/aibo/impl/AIOBServiceImpl.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/aibo/impl/AIOBServiceImpl.java index 6c079226..cb96971f 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/service/aibo/impl/AIOBServiceImpl.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/aibo/impl/AIOBServiceImpl.java @@ -675,7 +675,7 @@ public class AIOBServiceImpl implements IAIOBService { patientQuestionOptionResults.add(patientQuestionOptionResult); }); patientQuestionOptionResultMapper.saveQuestionOptionList(patientQuestionOptionResults); - totalScore[0] = totalScore[0].add(questionSubjectVO.getQuestionScore()); + totalScore[0] = totalScore[0].add(questionSubjectVO.getQuestionScore() == null ? BigDecimal.ZERO : questionSubjectVO.getQuestionScore()); } else { // 没问到问卷中的问题,则保存空问题+空选项 PatientQuestionSubjectResult patientQuestionSubjectResult = new PatientQuestionSubjectResult();