fuliqi
2024-07-30 7fed6ecd850022ba7cd2ac68a1b70460a204d6c6
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
package com.ycl.platform.domain.result.HK;
 
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
 
import java.util.List;
 
/**
 * 组织树查询
 *
 * @author gonghl
 */
@Data
@Document(collection = "organization_tree")
public class OrganizationTreeResult extends BaseResult{
 
    /**
     * 组织列表
     */
    private List<OrganizationNode> orgList;
 
    // 内嵌对象定义
 
    /**
     * 组织节点信息
     */
    @Data
    public static class OrganizationNode {
        /**
         * 组织编号
         */
        private String orgCode;
 
        /**
         * 组织名称
         */
        private String orgName;
 
        /**
         * 父组织编号
         */
        private String parentOrgCode;
 
        /**
         * 组织级别。根组织节点为1,依次往下
         */
        private int orgLevel;
 
        /**
         * 组织节点顺序
         */
        private int sort;
    }
}