class CategoryVO extends Category {

    private static final long serialVersionUID = 3775766246075838410L;

    @ApiModelProperty(value = "父节点名称")
    private String parentTitle;

    @ApiModelProperty("子分类列表")
    private List<CategoryVO> children;

    @ApiModelProperty("分类关联的品牌列表")
    private List<Brand> brandList;

    public CategoryVO(Category category) {
        BeanUtil.copyProperties(category, this);
    }

    public CategoryVO(String id, String createBy, Date createTime, String updateBy, Date updateTime, Boolean deleteFlag, String name, String parentId, Integer level, BigDecimal sortOrder, Double commissionRate, String image, Boolean supportChannel) {
        super(id, createBy, createTime, updateBy, updateTime, deleteFlag, name, parentId, level, sortOrder, commissionRate, image, supportChannel);
    }

    public List<CategoryVO> getChildren() {<FILL_FUNCTION_BODY>}
}


        if (children != null) {
            children.sort(new Comparator<CategoryVO>() {
                @Override
                public int compare(CategoryVO o1, CategoryVO o2) {
                    return o1.getSortOrder().compareTo(o2.getSortOrder());
                }
            });
            return children;
        }
        return null;
    
<methods>public void <init>(java.lang.String, java.lang.String, java.util.Date, java.lang.String, java.util.Date, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.Integer, java.math.BigDecimal, java.lang.Double, java.lang.String, java.lang.Boolean) ,public void <init>(java.lang.String, java.lang.String, java.lang.String, java.lang.Integer, java.math.BigDecimal, java.lang.Double, java.lang.String, java.lang.Boolean) <variables>private java.lang.Double commissionRate,private java.lang.String image,private java.lang.Integer level,private java.lang.String name,private java.lang.String parentId,private static final long serialVersionUID,private java.math.BigDecimal sortOrder,private java.lang.Boolean supportChannel