Blame view

GetSubjectTreeVO.java 2.01 KB
涂亚平 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
package com.meishu.vo.subject;

import lombok.Data;

import java.util.List;

@Data
public class GetSubjectTreeVO implements Comparable<GetSubjectTreeVO> {


    private Long id;

    private Long subjectId;

    /**
     * 章节
     */
    private Integer chapterId;

    /**
     * 知识点名称
     */
    private String treeName;

    /**
     * 写程序使用,数据库不存值
     */
    private List<GetSubjectTreeVO> children;

    /**
     * 父节点
     */
    private Long parentId;

    /**
     * 子节点个数
     */
    private Integer childNodeCounts;

    private String parentTreeName;

    private String treeNode;

    /**
     * 视频个数 个人库数量
     */
    private Integer vodCounts;

    /**
     * 视频个数  公共库数量
     */
    private Integer publicVodCounts;

    /**
     * 题目个数
     */
    private Integer exerciseCounts;

    /**
     *视频个数  公共库数量
     */
    private Integer publicExerciseVodCounts;

    /**
     * 视频审核个数
     */
    private Integer checkVodCounts;

    /**
     * 题目审核个数
     */
    private Integer checkExerciseCounts;

    /**
     * 视频待审核个数
     */
    private Integer toCheckVodCounts;

    /**
     * 题目待审核个数
     */
    private Integer toCheckExerciseCounts;

    /**
     * 子节点集合
     */
    private List<Integer> childTreeIds;

    private String number;

    private String text;

    private String layer;

    private int level;

    public GetSubjectTreeVO(Long id, String number, Long parentId, int level) {
        this.id = id;
        this.number = number;
        this.parentId = parentId;
        this.level = level;
    }

    @Override
    public int compareTo(GetSubjectTreeVO o) {
        if (this.level != o.level) {
            return o.level - this.level;
        } else {
            if(this.number==null){
                return -1;
            }
            return this.number.compareTo(o.number);
        }
    }

    public GetSubjectTreeVO(){

    }
}