| | |
| | | return TreeUtil.build(collect, parent); |
| | | } |
| | | |
| | | @Override |
| | | public List<Product> getProductList(Product product) { |
| | | return baseMapper.getProductListByScope(product,DataScope.of("comp_id")); |
| | | } |
| | | |
| | | @NotNull |
| | | private Function<Product, TreeNode<Long>> getNodeFunction() { |
| | | return product -> { |
| | |
| | | node.setParentId(product.getParentId()); |
| | | //node.setWeight(product.getParentId()); |
| | | // 扩展属性 |
| | | Map<String, Object> extra = new HashMap<>(); |
| | | // Map<String, Object> extra = new HashMap<>(); |
| | | // extra.put("picPath", category.getPicPath()); |
| | | // extra.put("Type", category.getType()); |
| | | // extra.put("isShow", category.getIsShow()); |
| | |
| | | // extra.put("status", category.getStatus()); |
| | | |
| | | // 适配 vue3 |
| | | Map<String, Object> meta = new HashMap<>(); |
| | | // Map<String, Object> meta = new HashMap<>(); |
| | | /* meta.put("title", product.getProductName()); |
| | | meta.put("icon", product.getPrice());*/ |
| | | |