From 61d13897cdf5c2f48f7b28b07019f8f428a553f5 Mon Sep 17 00:00:00 2001 From: CeDo <cedoogle@gmail.com> Date: 星期三, 14 四月 2021 17:22:47 +0800 Subject: [PATCH] bugfixed: 调查问卷编辑失效 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActQuestnaireServiceImpl.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActQuestnaireServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActQuestnaireServiceImpl.java index 305b166..302665e 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActQuestnaireServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActQuestnaireServiceImpl.java @@ -133,8 +133,8 @@ if (questnaireDO == null) { return R.fail(500, "id有误!"); } - questnaireDO.setTitle(questnaireDO.getTitle()); - questnaireDO.setQueDescribe(questnaireDO.getQueDescribe()); + questnaireDO.setTitle(questnaireVO.getQueTitle()); + questnaireDO.setQueDescribe(questnaireVO.getQueDescribe()); //保存问卷调查 questnaireDAO.updateById(questnaireDO); questnaireVO.getQuestnaiteSubVOS().forEach(sub -> { @@ -159,6 +159,8 @@ }); }); + }else{ + return R.fail("参数有误"); } return R.ok(); } -- Gitblit v1.7.1