4
hao
2025-04-16 c5fb1fbcbb2bf4d511773d348f9ef625855c61fc
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
package com.app.base.entity;
 
 
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
 
@MappedSuperclass
public abstract class TreeEntity<T extends Serializable> extends CommonEntity implements Tree<T> {
    private static final long serialVersionUID = -1119026749738515599L;
 
    protected T pkParent;
 
 
    /**
     * 资源图标class
     */
    @Column(length = 100)
    protected String bsIconCls;
 
    /**
     * 节点层级
     */
    @Column
    protected Integer bsLevel;
 
    /**
     * 是否子节点
     */
    @Column
    protected Integer bsLeaf = 1;
 
    /**
     * 顺序号
     */
    @Column
    protected Integer bsSortNo = 0;
 
    public T getPkParent() {
        return pkParent;
    }
    public void setPkParent(T pkParent) {
        this.pkParent = pkParent;
    }
    public String getBsIconCls() {
        return bsIconCls;
    }
    public void setBsIconCls(String bsIconCls) {
        this.bsIconCls = bsIconCls;
    }
    public Integer getBsLevel() {
        return bsLevel;
    }
    public void setBsLevel(Integer bsLevel) {
        this.bsLevel = bsLevel;
    }
    public Integer getBsLeaf() {
        return bsLeaf;
    }
    public void setBsLeaf(Integer bsLeaf) {
        this.bsLeaf = bsLeaf;
    }
    public Integer getBsSortNo() {
        return bsSortNo;
    }
    public void setBsSortNo(Integer bsSortNo) {
        this.bsSortNo = bsSortNo;
    }
    public T getParent() {
        return this.pkParent;
    }
    public Integer getLevel() {
        return this.bsLevel;
    }
    public Tree<T> getAttributes() {
        return null;
    }
    public String getText() {
        return this.bsName;
    }
    public String getIconCls() {
        return this.bsIconCls;
    }
 
}