java代码 public List<CategoryEntity> listWithTree() { //查出所有 List<CategoryEntity> categoryEntities = this.list(); List<CategoryEntity> lever1Menus = categoryEntities.stream() .filter(categoryEntity -> categoryEntity.getParentCid() == 0) .map((category