linwe
2023-11-24 305bf77bd37bb476f58c3e1499a4be3c352b66cc
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
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 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 doorplateType;
 
    /**
     * 地址等级
     */
    private Integer addressLevel;
 
    /**
     * 房屋编码
     */
    private String houseCode;
 
 
    /**
     * 地址类型 1:小区  2:非小区  3:街路巷 4:商超
     */
    private Integer addressType;
 
    /**
     * 父节点ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private String parentId;
 
    /**
     * 子孙节点
     */
    private List<TreeStringNode> children = new ArrayList<>();
 
    /**
     * 是否有子孙节点
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Boolean hasChildren;
}