字段不为空才返回
实体类查询字段不为空时才返回的注解:@JsonInclude
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@TableField(exist = false)
private List<CategoryEntity> children;
实体类查询字段不为空时才返回的注解:@JsonInclude
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@TableField(exist = false)
private List<CategoryEntity> children;