From 2d960f8cf9cbfe24b950ae21166ff90b75ac15a6 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期二, 15 二月 2022 09:35:58 +0800
Subject: [PATCH] 志愿者优化接口开发

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java |  224 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 216 insertions(+), 8 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
index 5c6b15d..198ac25 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
@@ -2,7 +2,9 @@
 
 import java.util.List;
 
+import com.panzhihua.common.model.dtos.common.*;
 import com.panzhihua.common.model.dtos.community.microCommercialStreet.DeleteProductDTO;
+import com.panzhihua.common.model.vos.community.volunteer.ComMngVolunteerExcelVO;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.scheduling.annotation.Async;
 import org.springframework.web.bind.annotation.DeleteMapping;
@@ -1199,7 +1201,7 @@
      * @return 社区集合 按照创建顺序倒序排列
      */
     @PostMapping("listcommunityall")
-    R listCommunityAll();
+    R listCommunityAll(@RequestParam("areaCode")String areaCode);
 
     /**
      * 首页广告banner
@@ -2531,6 +2533,17 @@
     R pagePopulation(ComMngPopulationDTO comMngPopulationVO);
 
     /**
+     * 导出老人
+     *
+     * @param comMngPopulationVO
+     *            查询参数
+     * @return 分页集合
+     */
+    @PostMapping("/common/data/population/exportOld")
+    R exportOld(ComMngPopulationDTO comMngPopulationVO);
+
+
+    /**
      * 根据身份证查询实有人口信息
      */
     @GetMapping("/common/data/population/selectByIdCard")
@@ -3357,7 +3370,7 @@
      * @date 2021/8/31 15:03
      */
     @GetMapping("/workGuide/classify/getList")
-    R getWorkGuideClassifyList();
+    R getWorkGuideClassifyList(@RequestParam("areaCode")String areaCode);
 
     /**
      * 分页查询邻里圈
@@ -4970,7 +4983,7 @@
      * @return 社区列表
      */
     @GetMapping("/eventgrid/community/westList")
-    R getWestCommunityLists();
+    R getWestCommunityLists(@RequestParam("areaCode")String areaCode);
 
     /**
      * 综治app-小区列表
@@ -5425,7 +5438,7 @@
      * @return 社区列表
      */
     @GetMapping("/switch/community/all/list")
-    R communitySwitchList();
+    R communitySwitchList(@RequestParam("areaCode") String areaCode);
 
     /**
      * 根据名字查询所有社区列表
@@ -5435,7 +5448,7 @@
      * @return 社区列表
      */
     @GetMapping("/switch/community/search/list")
-    R communitySwitchSearchList(@RequestParam(value = "name") String name);
+    R communitySwitchSearchList(@RequestParam(value = "name") String name,@RequestParam(value = "areaCode") String areaCode);
 
     /**
      * 根据经纬度以及距离搜索附近社区列表
@@ -5533,7 +5546,7 @@
      * @return 随手拍分类列表
      */
     @GetMapping("/classify/admin/list")
-    R listPhotoClassify();
+    R listPhotoClassify(@RequestParam("areaCode") String areaCode);
 
     /**
      * 社区后台-切换随手拍公示状态
@@ -5759,6 +5772,14 @@
      */
     @PostMapping("/reserve/admin/register/detailed/list")
     R registerDetailedListAdmin(@RequestBody PageReserveRegisterDetailedAdminDTO detailedAdminDTO);
+
+    /**
+     * 导出登记明细列表
+     * @param detailedAdminDTO  请求参数
+     * @return  登记明细列表
+     */
+    @PostMapping("/reserve/admin/register/detailed/list/export")
+    R registerDetailedListAdminExport(@RequestBody PageReserveRegisterDetailedAdminDTO detailedAdminDTO);
 
     /**
      * 查询登记详情记录
@@ -6372,7 +6393,7 @@
      * @return
      */
     @GetMapping("/convenient/service-category/all")
-    R getAllServiceCategories();
+    R getAllServiceCategories(@RequestParam("areaCode") String areaCode);
 
     /**
      * 获取用户便民服务商家详情
@@ -6493,7 +6514,7 @@
      * @return
      */
     @GetMapping("/convenient/service-category/suitable")
-    R getSuitableServiceCategories(@RequestParam("communityId") Long communityId);
+    R getSuitableServiceCategories(@RequestParam("communityId") Long communityId,@RequestParam("areaCode")String areaCode);
 
     /**
      * 获取该社区下的热门商家
@@ -7743,6 +7764,23 @@
     R indexVolunteerActList(@RequestBody PageBaseDTO pageBaseDTO);
 
     /**
+     * 清网治格-根据事件分类获取近1月的社区事件数据
+     * @param type
+     * @param communityId
+     * @return
+     */
+    @GetMapping("/screen/event/list")
+    R getEventList(@RequestParam(value = "type") Integer type, @RequestParam(value = "communityId") Long communityId);
+
+    /**
+     * 清网治格-社区事件数据分页
+     * @param pageBaseDTO
+     * @return
+     */
+    @PostMapping("/screen/event/page")
+    R pageEventList(@RequestBody PageBaseDTO pageBaseDTO);
+
+    /**
      * 新增数字商业街商家
      * @param mcsMerchantDTO
      * @return
@@ -8242,4 +8280,174 @@
      */
     @GetMapping("/microcommercialstreet/endStatusForMcsGame")
     R endStatusForMcsGame();
+
+    @GetMapping("/reserve/record/delete")
+    R deleteRecord(@RequestParam("recordId")Long recordId);
+
+    /**
+     * 历史数据人员类型填充
+     * @param newVoList
+     * @param communityId
+     * @param userId
+     * @return
+     */
+    @PostMapping("/common/data/history/filled")
+    R filledPopulationPersonType(@RequestBody List<ComMngPopulationServeExcelVO> newVoList,
+                                 @RequestParam("communityId") Long communityId, @RequestParam("userId") Long userId);
+
+    /**
+     * 社区后台-分页查询志愿者组织队伍
+     *
+     * @param orgTeamDto 请求参数
+     * @return 志愿者组织队伍
+     */
+    @PostMapping("/comMngVolunteerOrgTeam/page")
+    R pageVolunteerOrgAdmin(@RequestBody PageComMngVolunteerOrgTeamDto orgTeamDto);
+
+    /**
+     * 社区后台-新增志愿者组织队伍
+     *
+     * @param orgTeamDto 请求参数
+     * @return 新增结果
+     */
+    @PostMapping("/comMngVolunteerOrgTeam/add")
+    R addVolunteerOrgAdmin(@RequestBody AddComMngVolunteerOrgTeamDto orgTeamDto);
+
+    /**
+     * 社区后台-编辑志愿者组织队伍
+     *
+     * @param orgTeamDto 请求参数
+     * @return 编辑结果
+     */
+    @PutMapping("/comMngVolunteerOrgTeam/edit")
+    R editVolunteerOrgAdmin(@RequestBody EditComMngVolunteerOrgTeamDto orgTeamDto);
+
+    /**
+     * 社区后台-删除志愿者组织队伍
+     *
+     * @param id 主键id
+     * @return 删除结果
+     */
+    @GetMapping("/comMngVolunteerOrgTeam/delete")
+    R deleteVolunteerOrgAdmin(@RequestParam("id") Long id);
+
+    /**
+     * 社区后台-查询志愿者组织列表
+     *
+     * @param orgTeamDto 请求参数
+     * @return 志愿者组织列表
+     */
+    @PostMapping("/comMngVolunteerOrgTeam/list")
+    R listVolunteerOrgAdmin(@RequestBody PageComMngVolunteerOrgTeamDto orgTeamDto);
+
+    /**
+     * 社区后台-分页查询服务类型
+     *
+     * @param serviceTypeDto 请求参数
+     * @return 服务类型列表
+     */
+    @PostMapping("/comMngVolunteerServiceType/page")
+    R pageServiceTypeAdmin(@RequestBody PageComMngVolunteerServiceTypeDto serviceTypeDto);
+
+    /**
+     * 社区后台-新增服务类型
+     *
+     * @param serviceTypeDto 请求参数
+     * @return 新增结果
+     */
+    @PostMapping("/comMngVolunteerServiceType/add")
+    R addServiceTypeAdmin(@RequestBody AddComMngVolunteerServiceTypeDto serviceTypeDto);
+
+    /**
+     * 社区后台-编辑服务类型
+     *
+     * @param serviceTypeDto 请求参数
+     * @return 编辑结果
+     */
+    @PutMapping("/comMngVolunteerServiceType/edit")
+    R editServiceTypeAdmin(@RequestBody EditComMngVolunteerServiceTypeDto serviceTypeDto);
+
+    /**
+     * 社区后台-删除服务类型
+     *
+     * @param id 主键id
+     * @return 删除结果
+     */
+    @GetMapping("/comMngVolunteerServiceType/delete")
+    R deleteServiceTypeAdmin(@RequestParam("id") Long id);
+
+    /**
+     * 社区后台-分页查询志愿者技能列表
+     *
+     * @param volunteerSkillDto 请求参数
+     * @return 志愿者技能列表
+     */
+    @PostMapping("/comMngVolunteerSkill/page")
+    R pageVolunteerSkillAdmin(@RequestBody PageComMngVolunteerSkillDto volunteerSkillDto);
+
+    /**
+     * 社区后台-新增志愿者技能
+     *
+     * @param volunteerSkillDto 请求参数
+     * @return 新增结果
+     */
+    @PostMapping("/comMngVolunteerSkill/add")
+    R addVolunteerSkillAdmin(@RequestBody AddComMngVolunteerSkillDto volunteerSkillDto);
+
+    /**
+     * 社区后台-编辑志愿者技能
+     *
+     * @param volunteerSkillDto 请求参数
+     * @return 编辑结果
+     */
+    @PutMapping("/comMngVolunteerSkill/edit")
+    R editVolunteerSkillAdmin(@RequestBody EditComMngVolunteerSkillDto volunteerSkillDto);
+
+    /**
+     * 社区后台-删除志愿者技能
+     *
+     * @param id 主键id
+     * @return 删除结果
+     */
+    @GetMapping("/comMngVolunteerSkill/delete")
+    R deleteVolunteerSkillAdmin(@RequestParam("id") Long id);
+
+    /**
+     * 社区后台-查询志愿者服务类型列表
+     *
+     * @param serviceTypeDto 请求参数
+     * @return 志愿者服务列表
+     */
+    @PostMapping("/comMngVolunteerServiceType/list")
+    R listServiceTypeAdmin(@RequestBody PageComMngVolunteerServiceTypeDto serviceTypeDto);
+
+    /**
+     * 社区后台-查询志愿者技能列表
+     *
+     * @param volunteerSkillDto 请求参数
+     * @return 志愿者技能列表
+     */
+    @PostMapping("/comMngVolunteerSkill/list")
+    R listVolunteerSkillAdmin(@RequestBody PageComMngVolunteerSkillDto volunteerSkillDto);
+
+    /**
+     * 社区后台-志愿者组织统计
+     *
+     * @param communityId 社区id
+     * @return 志愿者组织统计
+     */
+    @GetMapping("/comMngVolunteerOrgTeam/statistics")
+    R statisticsVolunteerOrgAdmin(@RequestParam("communityId") Long communityId);
+
+    /**
+     * 志愿者导入
+     *
+     * @param list        志愿者数据列表
+     * @param communityId 社区id
+     * @param userId      用户id
+     * @return 导入结果
+     */
+    @PostMapping("/volunteer/import/admin")
+    R importVolunteerAdmin(@RequestBody List<ComMngVolunteerExcelVO> list,
+                           @RequestParam(value = "communityId") Long communityId, @RequestParam(value = "userId") Long userId);
 }

--
Gitblit v1.7.1