提交 | 用户 | 时间
|
fd2207
|
1 |
package com.jcdm.common.core.domain; |
懒 |
2 |
|
|
3 |
import java.util.ArrayList; |
|
4 |
import java.util.List; |
|
5 |
|
|
6 |
/** |
|
7 |
* Tree基类 |
|
8 |
* |
|
9 |
* @author jc |
|
10 |
*/ |
|
11 |
public class TreeEntity extends BaseEntity |
|
12 |
{ |
|
13 |
private static final long serialVersionUID = 1L; |
|
14 |
|
|
15 |
/** 父菜单名称 */ |
|
16 |
private String parentName; |
|
17 |
|
|
18 |
/** 父菜单ID */ |
|
19 |
private Long parentId; |
|
20 |
|
|
21 |
/** 显示顺序 */ |
|
22 |
private Integer orderNum; |
|
23 |
|
|
24 |
/** 祖级列表 */ |
|
25 |
private String ancestors; |
|
26 |
|
|
27 |
/** 子部门 */ |
|
28 |
private List<?> children = new ArrayList<>(); |
|
29 |
|
|
30 |
public String getParentName() |
|
31 |
{ |
|
32 |
return parentName; |
|
33 |
} |
|
34 |
|
|
35 |
public void setParentName(String parentName) |
|
36 |
{ |
|
37 |
this.parentName = parentName; |
|
38 |
} |
|
39 |
|
|
40 |
public Long getParentId() |
|
41 |
{ |
|
42 |
return parentId; |
|
43 |
} |
|
44 |
|
|
45 |
public void setParentId(Long parentId) |
|
46 |
{ |
|
47 |
this.parentId = parentId; |
|
48 |
} |
|
49 |
|
|
50 |
public Integer getOrderNum() |
|
51 |
{ |
|
52 |
return orderNum; |
|
53 |
} |
|
54 |
|
|
55 |
public void setOrderNum(Integer orderNum) |
|
56 |
{ |
|
57 |
this.orderNum = orderNum; |
|
58 |
} |
|
59 |
|
|
60 |
public String getAncestors() |
|
61 |
{ |
|
62 |
return ancestors; |
|
63 |
} |
|
64 |
|
|
65 |
public void setAncestors(String ancestors) |
|
66 |
{ |
|
67 |
this.ancestors = ancestors; |
|
68 |
} |
|
69 |
|
|
70 |
public List<?> getChildren() |
|
71 |
{ |
|
72 |
return children; |
|
73 |
} |
|
74 |
|
|
75 |
public void setChildren(List<?> children) |
|
76 |
{ |
|
77 |
this.children = children; |
|
78 |
} |
|
79 |
} |