diff --git a/postdischarge-mobile/src/main/java/com/xinelu/mobile/service/homepage/Impl/HomePageServiceImpl.java b/postdischarge-mobile/src/main/java/com/xinelu/mobile/service/homepage/Impl/HomePageServiceImpl.java index 4a97f9b2..caf652ad 100644 --- a/postdischarge-mobile/src/main/java/com/xinelu/mobile/service/homepage/Impl/HomePageServiceImpl.java +++ b/postdischarge-mobile/src/main/java/com/xinelu/mobile/service/homepage/Impl/HomePageServiceImpl.java @@ -190,7 +190,7 @@ public class HomePageServiceImpl implements HomePageService { } } // 新增患者问卷题目提交结果 - if (patientQuestionSubjectResultMapper.saveQuestionSubjectList(patientQuestionSubjectResults) <= 0) { + if (patientQuestionSubjectResultMapper.saveQuestionSubjectList(patientQuestionSubjectResults) < 0) { throw new ServiceException("新增患者问卷题目提交结果失败"); } if (CollectionUtils.isEmpty(patientQuestionOptionResults)) { @@ -208,7 +208,7 @@ public class HomePageServiceImpl implements HomePageService { saveQuestionSubjectOptions.add(saveQuestionOption); } // 新增患者问卷题目选项提交结果 - if (patientQuestionOptionResultMapper.saveQuestionOptionList(saveQuestionSubjectOptions) <= 0) { + if (patientQuestionOptionResultMapper.saveQuestionOptionList(saveQuestionSubjectOptions) < 0) { throw new ServiceException("新增患者问卷题目选项提交结果失败"); } return AjaxResult.success();