//利用递归的查找方式把一级分类下面的children 二级分类,二级分类下面的三级分类都查找出来
利用了Stream()流API
Map() 进行映射
sorted()进行排序
getchildrens()自己创建的查找子类方法
因为menu.getsort()是一个Integer 可能为空指针,三元表达式,如果为空则为0,不是则为自己。
//利用递归的查找方式把一级分类下面的children 二级分类,二级分类下面的三级分类都查找出来
利用了Stream()流API
Map() 进行映射
sorted()进行排序
getchildrens()自己创建的查找子类方法
因为menu.getsort()是一个Integer 可能为空指针,三元表达式,如果为空则为0,不是则为自己。