// 递归得到集合
public void climbStairs(ListreturnList) {
for (CustomerInfoFlyerDeptOutputDo item: returnList) {
CustomerInfoFlyerDeptInputDo inputDo = new CustomerInfoFlyerDeptInputDo();
inputDo.setCustomerId(item.getCustomerId());
inputDo.setParentDeptid(item.getDeptId());
List<CustomerInfoFlyerDeptOutputDo> childList = customerInfoFlyerMapper.selectDeptByParent(inputDo);
if (!WebTool.isNull(childList)) {
item.setChild(childList);
climbStairs(childList);
} else {
return;
}
}
}