| | |
| | | .eq(category.getType() != null, Category::getType, category.getType()) |
| | | .eq(category.getParentId() != null, Category::getParentId, category.getParentId()) |
| | | .eq(category.getNamePath() != null, Category::getNamePath, category.getNamePath()) |
| | | .isNull(category.getIsRoot() != null &&category.getIsRoot().equals(Constants.ONE), Category::getParentId) |
| | | .eq(category.getIdPath() != null, Category::getIdPath, category.getIdPath()) |
| | | .orderByAsc( Category::getSortnum); |
| | | return categoryMapper.selectJoinList(Category.class,queryWrapper); |
| | |
| | | |
| | | |
| | | @Override |
| | | public List<CategoryVO> getCategoryVOTree(Integer categoryType){ |
| | | public List<CategoryVO> getCategoryVOTree(String categoryType){ |
| | | List<Category> categoryList = categoryMapper.selectList(new QueryWrapper<Category>().lambda() |
| | | .eq(Category::getIsdeleted, Constants.ZERO) |
| | | .eq(Objects.nonNull(categoryType),Category::getType,categoryType) |
| | | .in(Objects.nonNull(categoryType),Category::getType,categoryType.split(",")) |
| | | .orderByAsc(Category::getSortnum,Category::getId) |
| | | ); |
| | | List<CategoryVO> categoryVOList = new ArrayList<>(); |