From b83c86aab539ccd64d413212b317125fa4b0761e Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期四, 19 八月 2021 14:42:02 +0800 Subject: [PATCH] 问卷调查增加不再提醒接口 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActQuestnaireServiceImpl.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 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 72226bc..78e8f17 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 @@ -523,6 +523,10 @@ return R.fail("调查问卷不存在!"); } + if(questnaireDO.getState().equals(ComActQuestnaireDO.state.dyz)){ + return R.fail("该调查问卷已结束,不可提交!"); + } + ComActQuestnaireUserAnswerDO oldUserAnswerDO = comActQuestnaireUserAnswerMapper.selectOne(new QueryWrapper<ComActQuestnaireUserAnswerDO>().lambda() .eq(ComActQuestnaireUserAnswerDO::getQuestnaireId,questId).eq(ComActQuestnaireUserAnswerDO::getUserId,userId)); if(oldUserAnswerDO != null){ @@ -726,4 +730,10 @@ return R.ok(); } + @Override + public R addNoNotice(Long questId,Long userId){ + questnaireDAO.addNoNotice(questId,userId); + return R.ok(); + } + } -- Gitblit v1.7.1