From ae30ebfc3e4a38aed0d91a42da4a1544dbd87ba3 Mon Sep 17 00:00:00 2001 From: CeDo <cedoogle@gmail.com> Date: 星期四, 15 四月 2021 12:10:06 +0800 Subject: [PATCH] 社会调查问卷添加默认参数 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java | 33 ++++++++++++++++++++++++++++++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java index 65a4968..e770468 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java @@ -10,6 +10,7 @@ import com.panzhihua.common.model.vos.community.*; 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; import com.panzhihua.common.model.vos.user.UserPhoneVO; import com.panzhihua.service_community.model.dos.ComActActPrizeDO; import com.panzhihua.service_community.model.dos.ComActDynDO; @@ -394,6 +395,17 @@ @PostMapping("pagedynamic") public R pageDynamic(@RequestBody ComActDynVO comActDynVO) { return comActDynService.pageDynamic(comActDynVO); + } + + /** + * 管理后台分页查询社区动态 + * + * @param comActDynVO 查询参数 + * @return 动态集合 + */ + @PostMapping("pagedynamicByAdmin") + public R pagedynamicByAdmin(@RequestBody ComActDynVO comActDynVO) { + return comActDynService.pageDynamicByAdmin(comActDynVO); } /** @@ -1334,7 +1346,13 @@ */ @PostMapping("questnaire/pagequestnaire") public R pageQuestnaire(@RequestBody PageQuestnaireDTO pageQuestnaireDTO,@RequestParam("communityId") Long communityId) { - return comActQuestnaireService.pageQuestnaire(pageQuestnaireDTO,communityId); + if(pageQuestnaireDTO.getForParty()==null){ + pageQuestnaireDTO.setForParty(false); + } + if(pageQuestnaireDTO.getForVolunteer()==null){ + pageQuestnaireDTO.setForVolunteer(false); + } + return comActQuestnaireService.pageQuestnaire(pageQuestnaireDTO, communityId); } /** @@ -1393,7 +1411,7 @@ * * @param pageQuestnaireSubDetailsDTO 问卷ID */ - @GetMapping("questnaire/qaqeustanswerdetails") + @PostMapping("questnaire/qaqeustanswerdetails") public R qaQeustAnswerDetails(@RequestBody PageQuestnaireSubDetailsDTO pageQuestnaireSubDetailsDTO){ return comActQuestnaireService.qaQeustDetails(pageQuestnaireSubDetailsDTO); } @@ -1403,9 +1421,18 @@ * @param pageQuestnaireAnswerDTO * @return 分页数据 */ - @GetMapping("questnaire/pagequestnaireanswer") + @PostMapping("questnaire/pagequestnaireanswer") public R pageQuestnaireAnswer(@RequestBody PageQuestnaireAnswerDTO pageQuestnaireAnswerDTO){ return comActQuestnaireService.pageQuestnaireAnswer(pageQuestnaireAnswerDTO); } + /** + * 居民填写问卷调查问卷 + * @param usersAnswerQuestnaireVO + */ + @PostMapping("questnaire/usersanswequestnaire") + public R usersAnsweQuestnaire(@RequestBody UsersAnswerQuestnaireVO usersAnswerQuestnaireVO,@RequestParam("userId") Long userId){ + return comActQuestnaireService.usersAnsweQuestnaire(usersAnswerQuestnaireVO,userId); + } + } -- Gitblit v1.7.1