| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbMemberRoleExcelVo; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @PostMapping("pagepartyorganization") |
| | | public R pagePartyOrganization(@RequestBody PagePartyOrganizationVO pagePartyOrganizationVO) { |
| | | return comPbMemberService.pagePartyOrganization(pagePartyOrganizationVO); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 查询党员信息导出 |
| | | * |
| | | * @param pagePartyOrganizationVO |
| | | * 查询信息 |
| | | * @return 分页数据 |
| | | */ |
| | | @PostMapping("exportPartyMember") |
| | | public R exportPartyMember(@RequestBody PagePartyOrganizationVO pagePartyOrganizationVO) { |
| | | return comPbMemberService.exportPartyMember(pagePartyOrganizationVO); |
| | | |
| | | } |
| | | |
| | |
| | | * @return 查询结果 |
| | | */ |
| | | @GetMapping("usercertification") |
| | | R userCertification(@RequestParam("id") Long id) { |
| | | R userCertification(@RequestParam("id") Long id,@RequestParam("communityId")Long communityId) { |
| | | List<ComPbMemberDO> comPbMemberDOList = |
| | | comPbMemberService.list(new QueryWrapper<ComPbMemberDO>().lambda().eq(ComPbMemberDO::getUserId, id)); |
| | | comPbMemberService.list(new QueryWrapper<ComPbMemberDO>().lambda().eq(ComPbMemberDO::getUserId, id).eq(ComPbMemberDO::getCommunityId,communityId)); |
| | | List<PartyBuildingMemberVO> partyBuildingMemberVOList = new ArrayList<>(); |
| | | comPbMemberDOList.forEach(comPbMemberDO -> { |
| | | PartyBuildingMemberVO partyBuildingMemberVO = new PartyBuildingMemberVO(); |
| | |
| | | public R importPbMemberRole(@RequestBody List<ComPbMemberRoleExcelVo> memberRoleExcelVoList,@RequestParam("communityId") Long communityId,@RequestParam("userId") Long userId){ |
| | | return comPbMemberService.importPbMemberRole(memberRoleExcelVoList,communityId,userId); |
| | | } |
| | | @GetMapping("/checkMember") |
| | | public R checkMember(@RequestParam("idCard")String idCard){ |
| | | return comPbMemberService.checkMember(idCard); |
| | | } |
| | | |
| | | @PostMapping("/getPagePbMember") |
| | | public R getPagePbMember(@RequestBody PartyBuildingMemberVO partyBuildingMemberVO){ |
| | | return comPbMemberService.getPagePbMember(partyBuildingMemberVO); |
| | | } |
| | | } |