xyc
2025-02-21 664db98c9e8595ce4dd636a27f480e3a08b81ff5
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package com.zt.common.db.constant;
 
import com.zt.common.annotation.Dictionary;
import com.zt.common.constant.IDictionary;
 
public interface AcceptValues {
 
    String INPUT = "INPUT";
    String DICT = "DICT";
    String USER = "USER";
    String DEPT = "DEPT";
    String COMPANY = "COMPANY";
 
    // String TENANT = "TENANT";
 
    interface Company {
        String CURRENT_ID = "currentId";
        String CURRENT_IDS = "currentIds";
    }
 
    interface Dept {
        String CURRENT_ID = "currentId";
        String CURRENT_IDS = "currentIds";
    }
 
    interface User {
        String CURRENT_ID = "currentId";
    }
 
    @Dictionary(type = "scope_company", name = "公司控制类型")
    enum CompanyEnum implements IDictionary {
 
        CURRENT_ID(Company.CURRENT_ID, "登陆者公司"), CURRENT_IDS(Company.CURRENT_IDS, "登陆者公司及下属"), SELECT_ID("selectId",
                "指定公司"), SELECT_IDS("selectIds", "指定公司及下属");
 
        private String value;
        private String name;
 
        CompanyEnum(String value, String name) {
            this.value = value;
            this.name = name;
        }
 
        @Override
        public String getValue() {
            return value;
        }
 
        @Override
        public String getName() {
            return name;
        }
    }
 
    @Dictionary(type = "scope_dept", name = "部门控制类型")
    enum DeptEnum implements IDictionary {
 
        CURRENT_ID(Dept.CURRENT_ID, "登陆者部门"), CURRENT_IDS(Dept.CURRENT_IDS, "登陆者部门及下属"), SELECT_ID("selectId", "指定部门"), SELECT_IDS(
                "selectIds", "指定部门及下属");
 
        private String value;
        private String name;
 
        DeptEnum(String value, String name) {
            this.value = value;
            this.name = name;
        }
 
        @Override
        public String getValue() {
            return value;
        }
 
        @Override
        public String getName() {
            return name;
        }
    }
 
    @Dictionary(type = "scope_user", name = "用户控制类型")
    enum UserEnum implements IDictionary {
 
        CURRENT_ID(User.CURRENT_ID, "登陆者Id");
 
        private String value;
        private String name;
 
        UserEnum(String value, String name) {
            this.value = value;
            this.name = name;
        }
 
        @Override
        public String getValue() {
            return value;
        }
 
        @Override
        public String getName() {
            return name;
        }
    }
}