Commit 1e4a7834 by qwmqiuwenmin

fix

parent 5a71fba9
...@@ -59,13 +59,14 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi ...@@ -59,13 +59,14 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi
if(departmentService.getByRelatedId(gicTreeDTO.getId()) == null) { if(departmentService.getByRelatedId(gicTreeDTO.getId()) == null) {
nodeCount ++; nodeCount ++;
} }
} List<GicTreeDTO> departmentList2 = storeGroupService.listGicTree(enterpriseId,gicTreeDTO.getType(), gicTreeDTO.getId());
while(!departmentList2.isEmpty()) {
while(!departmentList.isEmpty()) { for (GicTreeDTO gicTreeDTO2 : departmentList) {
for (GicTreeDTO gicTreeDTO : departmentList) { nodeCount += getNodeCount(enterpriseId,gicTreeDTO2.getId(),gicTreeDTO2.getType());
nodeCount += getNodeCount(enterpriseId,gicTreeDTO.getId(),gicTreeDTO.getType()); }
} }
} }
return nodeCount; return nodeCount;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment