摘要: List<Long> parentPath = findParentPath(catelogId, paths);Collections.reverse(parentPath); //将集合逆序(前后颠倒位置)return parentPath.toArray(new Long[parentPath 阅读全文
posted @ 2022-11-28 17:06 sensen~||^_^|||& 阅读(38) 评论(0) 推荐(0)
摘要: @Overridepublic Long[] findCatelogPath(Long catelogId) { List<Long> paths = new ArrayList<>(); List<Long> parentPath = findParentPath(catelogId, paths 阅读全文
posted @ 2022-11-28 16:36 sensen~||^_^|||& 阅读(16) 评论(0) 推荐(0)
摘要: 实体类查询字段不为空时才返回的注解:@JsonInclude@JsonInclude(JsonInclude.Include.NON_EMPTY)@TableField(exist = false)private List<CategoryEntity> children; 阅读全文
posted @ 2022-11-28 16:04 sensen~||^_^|||& 阅读(22) 评论(0) 推荐(0)