Commit 4a4f580e authored by neo's avatar neo

[buffix] null point when getBalanceDataForDisplay

parent ead4192b
......@@ -245,6 +245,7 @@ public class TBDataImportController {
private void initTree(List<JsonTrialBalanceTreeNode> nodes, String parentCode, List<JsonTrialBalanceTreeNode> sources) {
JsonTrialBalanceTreeNode tempNode;
//递归寻找子节点
if (sources != null && !sources.isEmpty()) {
List<JsonTrialBalanceTreeNode> tempTree = sources.stream().filter(item -> item.getParentCode().equals(parentCode)).collect(Collectors.toList());
for (JsonTrialBalanceTreeNode row : tempTree) {
tempNode = new JsonTrialBalanceTreeNode();
......@@ -254,6 +255,7 @@ public class TBDataImportController {
initTree(tempNode.getChildren(), row.getAcctCode(), sources);
}
}
}
private static List<TrialBalanceDto> filterTrialBalanceList(TrialBalanceFilter filter, List<TrialBalanceDto> balanceList) {
// Account Code: support multiple codes seperated by space:
......
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