linwe
2023-12-09 1c8fc3df880a10625fe8326af8d6442d8f90f398
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
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 org.springblade.modules.category.dto.CategoryLabelDTO;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
 
/**
 * 视图实体类
 *
 * @author zhongrj
 */
@Data
public class TreeStringNode implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 主键ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private String id;
 
    /**
     * 名称
     */
    private String name;
 
    private String neiName;
 
    /**
     * 小区编码
     */
    private String aoiCode;
 
    /**
     * 门牌类型
     */
    private String doorplateType;
 
    /**
     * 地址等级
     */
    private Integer addressLevel;
 
    /**
     * 房屋编码
     */
    private String houseCode;
 
 
    /**
     * 地址类型 1:小区  2:非小区  3:街路巷 4:商超
     */
    private Integer addressType;
 
    /**
     * 与角色关系
     */
    private Integer relationship;
 
    /**
     * 父节点ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private String parentId;
 
    /**
     * 子孙节点
     */
    private List<TreeStringNode> children = new ArrayList<>();
 
    /**
     * 标签节点
     */
    private List<CategoryLabelDTO> categoryLabelList;
 
    /**
     * 是否有子孙节点
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Boolean hasChildren;
}