Commit 1e4a7834 by qwmqiuwenmin

fix

parent 5a71fba9
......@@ -59,13 +59,14 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi
if(departmentService.getByRelatedId(gicTreeDTO.getId()) == null) {
nodeCount ++;
}
List<GicTreeDTO> departmentList2 = storeGroupService.listGicTree(enterpriseId,gicTreeDTO.getType(), gicTreeDTO.getId());
while(!departmentList2.isEmpty()) {
for (GicTreeDTO gicTreeDTO2 : departmentList) {
nodeCount += getNodeCount(enterpriseId,gicTreeDTO2.getId(),gicTreeDTO2.getType());
}
while(!departmentList.isEmpty()) {
for (GicTreeDTO gicTreeDTO : departmentList) {
nodeCount += getNodeCount(enterpriseId,gicTreeDTO.getId(),gicTreeDTO.getType());
}
}
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