if (treeEntity != null) {
E parent = ReflectionUtils.invokeGetterMethod(entity,treeEntity.parentProperty());
// 如果对象父类不为null,将父类的leaf设置成true,表示父类下存在子节点
if (parent != null) {
Object value = ConvertUtils.convertToObject(treeEntity.leafValue(), treeEntity.leafClass());
ReflectionUtils.invokeSetterMethod(parent,treeEntity.leafProperty(), value);
}
}
return Boolean.TRUE;