| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.IdcardUtil; |
| | | import com.google.common.collect.Lists; |
| | | import com.panzhihua.common.enums.ComPbMemberRoleTypeEnum; |
| | |
| | | private CommunityWestService communityWestService; |
| | | @Resource |
| | | private UserService userService; |
| | | @Resource |
| | | private ComPbMemberDAO comPbMemberDAO; |
| | | |
| | | /** |
| | | * 新增党员 |
| | |
| | | } |
| | | page.setSize(pageSize); |
| | | page.setCurrent(pageNum); |
| | | Long communityId = partyBuildingComPbDynVO.getCommunityId(); |
| | | if (null != communityId){ |
| | | List<Long> communityIds = comPbMemberDAO.selectIds(communityId); |
| | | if (CollUtil.isEmpty(communityIds)) { |
| | | communityIds = new ArrayList<>(); |
| | | communityIds.add(communityId); |
| | | } |
| | | partyBuildingComPbDynVO.setCommunityIds(communityIds); |
| | | } |
| | | IPage<PartyBuildingComPbDynVO> iPage = comPbDynDAO.pageYnamic(page, partyBuildingComPbDynVO); |
| | | List<PartyBuildingComPbDynVO> records = iPage.getRecords(); |
| | | if (!(ObjectUtils.isEmpty(records))) { |