代码优化:添加非空判断

This commit is contained in:
wyldusername 2019-08-15 18:08:47 +08:00
parent 8d0f55fc0e
commit 7aba9cc05f
1 changed files with 3 additions and 1 deletions

View File

@ -380,8 +380,10 @@ public class BeanUtils {
}
//递归调用
buildTree(children, allModels);
if(V.notEmpty(children)){
setProperty(parent, Cons.FieldName.children.name(), children);
}
}
return parentModels;
}