| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.IdcardUtil; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.panzhihua.common.model.dtos.community.PageMemberForInviteDTO; |
| | | import com.panzhihua.common.model.dtos.partybuilding.ComDataStatisticsOrgDto; |
| | |
| | | */ |
| | | @Override |
| | | public R pagePartyOrganization(PagePartyOrganizationVO pagePartyOrganizationVO) { |
| | | |
| | | Long communityId = pagePartyOrganizationVO.getCommunityId(); |
| | | R r = communityService.selectCommunityIds(communityId); |
| | | List<Long> communityIds = null; |
| | | if(R.isOk(r)){ |
| | | communityIds = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), Long.class); |
| | | if (CollUtil.isEmpty(communityIds)) { |
| | | communityIds = new ArrayList<>(); |
| | | communityIds.add(communityId); |
| | | } |
| | | }else { |
| | | communityIds = new ArrayList<>(); |
| | | communityIds.add(communityId); |
| | | } |
| | | pagePartyOrganizationVO.setCommunityIds(communityIds); |
| | | |
| | | Page page = new Page<>(); |
| | | Long pageNum = pagePartyOrganizationVO.getPageNum(); |
| | | Long pageSize = pagePartyOrganizationVO.getPageSize(); |