|
|
@ -60,7 +60,7 @@ public class LingShanPartyOrgServiceImpl implements LingShanPartyOrgService, Res |
|
|
|
q = new QueryWrapper<IcPartyOrgEntity>().select(" party_org_type, count(*) childrenQty").lambda() |
|
|
|
// 本组织下级的所有子级
|
|
|
|
.eq(IcPartyOrgEntity::getAgencyId, agencyId) |
|
|
|
.eq(IcPartyOrgEntity::getPartyOrgType, PartyOrgTypeEnum.BRANCH.getCode()) // 是社区,就只能查询支部了。这里要控制,因为支部的行政组织也是对应到社区,所以这里必须限制一下
|
|
|
|
// .eq(IcPartyOrgEntity::getPartyOrgType, PartyOrgTypeEnum.BRANCH.getCode()) // 是社区,就只能查询支部了。这里要控制,因为支部的行政组织也是对应到社区,所以这里必须限制一下
|
|
|
|
.groupBy(IcPartyOrgEntity::getPartyOrgType); |
|
|
|
} else { |
|
|
|
// 街道及以上级别,用pids,因为要从社区开始查,本级及下级
|
|
|
@ -160,7 +160,7 @@ public class LingShanPartyOrgServiceImpl implements LingShanPartyOrgService, Res |
|
|
|
if (OrgInfoConstant.AGENCY.equals(orgType)) { |
|
|
|
// 是行政组织,就要查询组织的下一级。查询下一级只能用AGENCY_PIDS
|
|
|
|
AgencyInfoCache agencyInfo = CustomerOrgRedis.getAgencyInfo(orgId); |
|
|
|
return partyOrgDao.lingshanListDw(PidUtils.convertPid2OrgIdPath(agencyInfo.getId(), agencyInfo.getPids())); |
|
|
|
return partyOrgDao.lingshanListDw(PidUtils.convertPid2OrgIdPath(agencyInfo.getId(), agencyInfo.getPids()), orgId); |
|
|
|
} else { |
|
|
|
// 是网格,哪里来的党委?
|
|
|
|
return new ArrayList<>(); |
|
|
|