| | |
| | | |
| | | 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; |
| | |
| | | @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); |
| | | } |