From 17bccd09afb6e6a4fffa0409d7d5285e88442103 Mon Sep 17 00:00:00 2001
From: huanghongfa <18228131219@163.com>
Date: 星期四, 31 十二月 2020 16:05:57 +0800
Subject: [PATCH] 志愿者团新增接口

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 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 9f07593..c127007 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
@@ -911,4 +911,22 @@
         return comActService.pageCommunity(pageComActDTO);
     }
 
+    /**
+     * 志愿者详情
+     * @param id 主键
+     * @return 志愿者
+     */
+    @PostMapping("detailvolunteer")
+    public R detailVolunteer(@RequestParam("id") Long id){
+        R r = comMngVolunteerMngService.detailVolunteer(id);
+        if (R.isOk(r)) {
+            ComMngVolunteerMngAppletsVO comMngVolunteerMngAppletsVO =(ComMngVolunteerMngAppletsVO) r.getData();
+            String phone = comMngVolunteerMngAppletsVO.getPhone();
+            List<ComActActivityVO> comActActivityVOS= comActActivityService.listActivityByPhone(phone);
+            comMngVolunteerMngAppletsVO.setComActActivityVOList(comActActivityVOS);
+            r.setData(comMngVolunteerMngAppletsVO);
+        }
+        return r;
+    }
+
 }

--
Gitblit v1.7.1