From 54ad966d0b142c97fc659263b51d1ea5d7b5c7c6 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期五, 28 五月 2021 16:17:08 +0800 Subject: [PATCH] 修改bug --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActQuestnaireService.java | 80 +++++++++++++++++++++++++++++++++++----- 1 files changed, 70 insertions(+), 10 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActQuestnaireService.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActQuestnaireService.java index 7523682..0719cfb 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActQuestnaireService.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActQuestnaireService.java @@ -1,6 +1,12 @@ package com.panzhihua.service_community.service; +import com.panzhihua.common.model.dtos.community.PageQuestnaireAnswerDTO; +import com.panzhihua.common.model.dtos.community.PageQuestnaireDTO; +import com.panzhihua.common.model.dtos.community.PageQuestnaireSubDetailsDTO; import com.panzhihua.common.model.vos.R; +import com.panzhihua.common.model.vos.community.questnaire.EditComActQuestnaireVo; +import com.panzhihua.common.model.vos.community.questnaire.QuestnaireVO; +import com.panzhihua.common.model.vos.community.questnaire.UsersAnswerQuestnaireVO; /** * @Author: llming @@ -9,29 +15,83 @@ public interface ComActQuestnaireService { /** * 新增社区问卷 + * * @return */ - R AddQuestnaire(); + R addQuestnaire(QuestnaireVO questnaireVO, Long communityId, Long userId); + /** * 社区问卷列表 */ - R ListQuestnaire(); + R pageQuestnaire(PageQuestnaireDTO pageQuestnaireDTO, Long communityId); + + /** + * 编辑问卷——问卷、题目、选项 + */ + R editQuestnaire(QuestnaireVO questnaireVO); + /** * 修改问卷状态 */ - R editQuestnaire(); - /** - * 删除问卷 - */ - R deleteQuestnaire(); + R editQuestnaireDO(EditComActQuestnaireVo editComActQuestnaireVo, Long userId); /** - * 问卷详情 + * 删除问卷 ——隐藏 + * + * @param questId 问卷调查ID + * @return */ - R infoQuestnaire(); + R deleteQuestnaire(Long questId, Long userId); + + /** + * 问卷详情-调查结果统计 + * + * @param questId 问卷ID + */ + R statQuestnaire(Long questId); + + /** + * 问卷详细-问卷查看 + * + * @param questId + * @return + */ + R infoQuestnaire(Long questId); /** * 问卷答题详情 + * + * @param userId 用户ID + * @param questId 问卷ID */ - R answerInfoQuestnaire(); + R answerInfoQuestnaire(Long userId, Long questId); + + /** + * 问卷答题结果 + * + * @param questId 问卷ID + */ + R answerResultList(Long questId); + + /** + * 问答题详细回答列表 + * @param pageQuestnaireSubDetailsDTO 分页查询参数 + * @return 分页查询结果 + */ + R qaQeustDetails(PageQuestnaireSubDetailsDTO pageQuestnaireSubDetailsDTO); + + /** + * 社区问卷 回答分页信息 + * @param pageQuestnaireAnswerDTO 分页查询数据 + * @return 分页信息 + */ + R pageQuestnaireAnswer(PageQuestnaireAnswerDTO pageQuestnaireAnswerDTO); + + /** + * 居民填写问卷调查问卷 + * @param usersAnswerQuestnaireVO + * @param userId + * @return + */ + R usersAnsweQuestnaire(UsersAnswerQuestnaireVO usersAnswerQuestnaireVO, Long userId); } -- Gitblit v1.7.1