摘要:
List<Long> parentPath = findParentPath(catelogId, paths);Collections.reverse(parentPath); //将集合逆序(前后颠倒位置)return parentPath.toArray(new Long[parentPath 阅读全文
摘要:
@Overridepublic Long[] findCatelogPath(Long catelogId) { List<Long> paths = new ArrayList<>(); List<Long> parentPath = findParentPath(catelogId, paths 阅读全文
摘要:
实体类查询字段不为空时才返回的注解:@JsonInclude@JsonInclude(JsonInclude.Include.NON_EMPTY)@TableField(exist = false)private List<CategoryEntity> children; 阅读全文
