From 70d2a5d0f9c6951b2d4cac954041ed73582ff7eb Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期一, 09 六月 2025 11:54:00 +0800 Subject: [PATCH] 6.9新增登录失败冻结逻辑 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActQuestnaireServiceImpl.java | 8 ++++++-- 1 files changed, 6 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 bed5874..0e892a6 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 @@ -270,6 +270,7 @@ questnaireDAO.updateById(questnaireDO); // 删除原调查问卷题目以及选项,重新进行新增 questnaireDAO.deleteQuesSubAll(queId); + questnaireDAO.deleteQuesSubAll2(queId); // 重新新增题目以及题目选项 if (!questnaiteSubVOS.isEmpty()) { questnaiteSubVOS.forEach(sub -> { @@ -341,8 +342,11 @@ if (queDO == null) { return R.fail("未查询到调查问卷记录"); } - if (!queDO.getState().equals(ComActQuestnaireDO.state.dfb)) { - return R.fail("该调查问卷不是待发布状态,不可删除"); +// if (!queDO.getState().equals(ComActQuestnaireDO.state.dfb) ) { + +// return R.fail("该调查问卷不是待发布状态,不可删除"); + if (queDO.getState().equals(ComActQuestnaireDO.state.dyz) ) { + return R.fail("该调查问卷不是待发布状态或已结束状态,不可删除"); } queDO.setUpdateBy(userId); queDO.setUpdateAt(new Date()); -- Gitblit v1.7.1