From 639fec1d993d0c589c7e83d7d7e080fb3ff004ca Mon Sep 17 00:00:00 2001 From: haown <454902499@qq.com> Date: Mon, 18 Nov 2024 17:12:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E5=8D=B7=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E5=88=86=E6=95=B0=E4=B8=BA=E7=A9=BA=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E9=97=AE=E5=8D=B7=E8=BD=AC=E6=8D=A2=E6=8A=A5=E7=A9=BA=E6=8C=87?= =?UTF-8?q?=E9=92=88=E5=BC=82=E5=B8=B8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xinelu/manage/service/aibo/impl/AIOBServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();