From 6cbbbc92f623c83e918ef0f2eea8ff82cc920b1b Mon Sep 17 00:00:00 2001 From: DESKTOP-71BH0QO\L、ming <172680469@qq.com> Date: 星期五, 30 四月 2021 10:57:04 +0800 Subject: [PATCH] Add:添加邻里圈删除 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java | 36 +++++++++++++++++++++++++++++++++++- 1 files changed, 35 insertions(+), 1 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 2093f1d..e38e6a9 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 @@ -794,6 +794,16 @@ } /** + * 获取志愿者详情 + * @param id + * @return + */ + @GetMapping("getVolunteerById") + R getVolunteerById(@RequestParam("id")Long id){ + return comMngVolunteerMngService.getVolunteerById(id); + } + + /** * 删除志愿者 * @param comMngVolunteerMngVO 手机号 * @return 删除结果 @@ -1104,6 +1114,15 @@ } /** + * 定时任务刷新微心愿的状态 + * @return 更新结果 + */ + @PostMapping("timedtaskactmicrowish") + R timedTaskActMicroWishAll(){ + return comActMicroWishService.timedTaskActMicroWishAll(); + } + + /** * 其他建筑详情 * @param id 主键id * @return 建筑内容 @@ -1346,7 +1365,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); } /** @@ -1429,4 +1454,13 @@ return comActQuestnaireService.usersAnsweQuestnaire(usersAnswerQuestnaireVO,userId); } + /** + * 删除微心愿 + * @param id + * @return + */ + @PostMapping("deletemicrowish") + public R deletemicrowish(@RequestParam("id") Long id){ + return comActMicroWishService.deleteMicroWish(id); + } } -- Gitblit v1.7.1