医院废弃物信息化管理平台
“mitao”
2025-12-24 3763145f34d7706923d55edc32f5cfbc8bc08b92
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
package cn.besteam.common.util.tree;
 
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
 
import java.io.Serializable;
import java.util.List;
 
 
/**
 * @author A
 */
@Setter
@Getter
public class TreeNode<T> implements Serializable {
 
    /**
     * id
     */
    @ApiModelProperty("主键id")
    private Integer id;
 
    /**
     * 父级id
     */
    @ApiModelProperty("父类id")
    private Integer parentId;
 
    /**
     * 子集
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<T> children;
 
 
}