代码优化:添加非空判断
This commit is contained in:
parent
8d0f55fc0e
commit
7aba9cc05f
|
@ -380,8 +380,10 @@ public class BeanUtils {
|
|||
}
|
||||
//递归调用
|
||||
buildTree(children, allModels);
|
||||
if(V.notEmpty(children)){
|
||||
setProperty(parent, Cons.FieldName.children.name(), children);
|
||||
}
|
||||
}
|
||||
|
||||
return parentModels;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue