|
@@ -68,12 +68,12 @@ public class AccountingServiceImpl extends ServiceImpl<AccountingMapper, Account
|
|
|
for (AccountVO account : list) {
|
|
|
// 如果是父子关系
|
|
|
if (accountVO.getId().equals(account.getParentId())) {
|
|
|
- List<AccountVO> child = accountVO.getChild();
|
|
|
+ List<AccountVO> child = accountVO.getChildren();
|
|
|
if (CollUtil.isEmpty(child)) {
|
|
|
child = new ArrayList<>();
|
|
|
}
|
|
|
child.add(account);
|
|
|
- accountVO.setChild(child);
|
|
|
+ accountVO.setChildren(child);
|
|
|
// 处理子节点
|
|
|
this.getAccountTree(account, list);
|
|
|
}
|