zhongrj
2024-02-22 4ed8e5eee778357cc30d938d6d9ae4ecf7b2a312
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
package org.springblade.common.node;
 
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
 
/**
 * 视图实体类
 *
 * @author zhongrj
 */
@Data
public class TreeIntegerNode implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 主键ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer id;
 
    /**
     * 名称
     */
    private String name;
 
    /**
     * 总数量
     */
    private Integer count;
 
    /**
     * 排序
     */
    private Integer sort;
 
    /**
     * 父节点ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer parentId;
 
    /**
     * 子孙节点
     */
    private List<TreeIntegerNode> children = new ArrayList<>();
 
    /**
     * 是否有子孙节点
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Boolean hasChildren;
 
    private Integer level;
 
    private String categoryNo;
}