小程序问卷提交

This commit is contained in:
zhangheng 2024-05-15 17:17:22 +08:00
parent de9065e8d6
commit bd46ebb7f4

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