田源
2024-01-26 e3f2259fcece27f7b98d466b08cbc571de043fd7
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package com.vci.ubcs.omd.constant;
 
import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil;
 
import java.util.HashMap;
import java.util.Map;
 
/**
 * Description:
 *
 * @author LiHang
 * @date 2023/4/27
 */
public class BtmTypeFieldConstant {
 
    public static Map<String, String> USER_TABLE_COMPATIBILITY_BTM_MAP;
 
    public static Map<String, String> USER_TABLE_COMPATIBILITY_FIELD_MAP;
 
    public static final Boolean DEFAULT_QUERY_SECRET;
 
    public static final Boolean DEFAULT_QUERY_DATA_RIGHT;
 
    public static final Map<String, String> REVISION_MANAGE_FIELD_MAP;
 
    public static final Map<String, String> BASIC_FIELD_MAP;
 
    public static final Map<String, String> BASE_MODEL_COMPATIBILITY_MAP;
 
    public static final Map<String, String> LIFECYCLE_MANAGE_FIELD_MAP;
 
    public static final Map<String, String> MASTERDATA_FIELD_MAP;
 
    public static final Map<String, String> SECRET_MANAGE_FIELD_MAP;
 
    public static final Map<String, String> LINK_TYPE_FIELD_MAP;
 
    static {
        USER_TABLE_COMPATIBILITY_BTM_MAP = new HashMap();
        USER_TABLE_COMPATIBILITY_FIELD_MAP = new HashMap();
        DEFAULT_QUERY_SECRET = true;
        DEFAULT_QUERY_DATA_RIGHT = false;
        REVISION_MANAGE_FIELD_MAP = new HashMap() {
            {
                this.put("nameoid", "对象主键");
                this.put("revisionoid", "版本主键");
//                this.put("lastr", "是否最新版本");
//                this.put("firstr", "是否最老版本");
//                this.put("lastv", "是否最新版次");
//                this.put("firstv", "是否最老版次");
                this.put("revisionrule", "版本规则");
                this.put("revisionseq", "版本排序号");
                this.put("revisionvalue", "版本值");
                this.put("versionrule", "版次规则");
                this.put("versionseq", "版次排序号");
                this.put("versionvalue", "版次值");
                this.put("checkinby", "签入人");
                this.put("checkintime", "签入时间");
                this.put("checkoutby", "签出人");
                this.put("checkouttime", "签出时间");
                this.put("copyfromversion", "拷贝版本来源");
            }
        };
        BASIC_FIELD_MAP = new HashMap() {
            {
                this.put("oid", "主键");
                this.put("btmname", "业务类型的名称");
                this.put("id", "编号");
                this.put("name", "名称");
                this.put("description", "描述");
                this.put("creator", "创建人");
                this.put("createtime", "创建时间");
                this.put("lastmodifier", "最后时间人");
                this.put("lastmodifytime", "最后修改时间");
                this.put("ts", "时间戳");
                this.put("owner", "拥有者");
                this.put("tenant_id","租户");
                // TODO:因为主数据查询代码中默认就把这些字段给带上了,所以也得加在默认属性里面
                this.put("lastr", "是否最新版本");
                this.put("firstr", "是否最老版本");
                this.put("lastv", "是否最新版次");
                this.put("firstv", "是否最老版次");
            }
        };
        BASE_MODEL_COMPATIBILITY_MAP = new HashMap() {
            {
                this.put("lastr", "是否最新版本");
                this.put("firstr", "是否最老版本");
                this.put("lastv", "是否最新版次");
                this.put("firstv", "是否最老版次");
            }
        };
        MASTERDATA_FIELD_MAP = new HashMap() {
            {
                this.put("codeclsfid","分类的主键字段");
                this.put("codeclsfpath", "分类全路径的字段");
                this.put("codetemplateoid", "模板的主键字段");
            }
        };
        LIFECYCLE_MANAGE_FIELD_MAP = new HashMap() {
            {
                this.put("lcstatus", "生命周期值");
            }
        };
        SECRET_MANAGE_FIELD_MAP = new HashMap() {
            {
                this.put("secretgrade", "密级值");
            }
        };
        LINK_TYPE_FIELD_MAP = new HashMap() {
            {
                this.put("oid", "主键");
                this.put("creator", "创建人");
                this.put("createtime", "创建时间");
                this.put("lastmodifier", "最后时间人");
                this.put("lastmodifytime", "最后修改时间");
                this.put("f_oid", "from端主键");
                this.put("f_revisionoid", "from端版本主键");
                this.put("f_nameoid", "from端对象主键");
                this.put("f_btmname", "from端业务类型");
                this.put("t_oid", "to端主键");
                this.put("t_revisionoid", "to端版本主键");
                this.put("t_nameoid", "to端对象主键");
                this.put("t_btmname", "to端业务类型");
                this.put("ts", "时间戳");
            }
        };
    }
}