Merge branch '0418_小程序开发' of http://182.92.166.109:3000/jihan/PostDischargePatientManage into 0418_小程序开发

This commit is contained in:
haown 2024-05-17 08:45:10 +08:00
commit 26dcc57c90

View File

@ -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();