| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.community.ComActActivityTypeVO; |
| | | import com.panzhihua.common.model.vos.community.volunteer.ComMngVolunteerExcelVO; |
| | | import com.panzhihua.common.model.vos.user.SysTemplateConfigVO; |
| | |
| | | */ |
| | | @PostMapping("addvolunteer") |
| | | R addVolunteer(@RequestBody ComMngVolunteerMngVO comMngVolunteerMngVO) { |
| | | Long submitUserId = comMngVolunteerMngVO.getSubmitUserId(); |
| | | if (Objects.nonNull(submitUserId)) { |
| | | //获取小程序用户信息 |
| | | R<LoginUserInfoVO> userInfoR = userService.getUserInfoByUserId(submitUserId.toString()); |
| | | LoginUserInfoVO userInfo = userInfoR.getData(); |
| | | if (Objects.nonNull(userInfo)) { |
| | | comMngVolunteerMngVO.setIdCard(userInfo.getIdCard()); |
| | | } |
| | | } |
| | | return comMngVolunteerMngService.addVolunteer(comMngVolunteerMngVO); |
| | | } |
| | | |
| | |
| | | public R partyMemberCount(@RequestParam("communityId")Long communityId,@RequestParam("year")String year){ |
| | | return comActActivityService.partyMemberCount(communityId,year); |
| | | } |
| | | |
| | | /** |
| | | * 党员活动详情数据 |
| | | * @return |
| | | */ |
| | | @PostMapping("activity/partyMemberDetail") |
| | | public R partyMemberDetail(@RequestBody CommonPage commonPage){ |
| | | return comActActivityService.partyMemberDetail(commonPage); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出党员活动详情数据 |
| | | * @return |
| | | */ |
| | | @PostMapping("activity/exportPartyMemberDetail") |
| | | public R exportPartyMemberDetail(@RequestBody CommonPage commonPage){ |
| | | return comActActivityService.exportPartyMemberDetail(commonPage); |
| | | } |
| | | } |