管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-01 f464f39249b533aaf4cb26a6c1b21274fed2adec
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
package com.lf.server.entity.all;
 
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
 
/**
 * 静态数据类
 * @author WWW
 */
public class StaticData {
    /**
     * 权限排除路径:/proxy,要求全部小写
     */
    public static String[] EXCLUDE_PATH = new String[]{"/sign/", "/perms/", "/fmeit/", "/crds/", "/floatserver/", "/wmts/select", "/swagger", "/error"};
 
    /**
     * 数值:2
     */
    public final static int TWO = 2;
 
    /**
     * 数值:4
     */
    public final static int FOUR = 4;
 
    /**
     * 数值:9
     */
    public final static int NINE = 9;
 
    /**
     * 数值:10
     */
    public final static int TEN = 10;
 
    /**
     * 数值:16
     */
    public final static int SIXTEEN = 16;
 
    /**
     * 数值:100
     */
    public final static int ONE_HUNDRED = 100;
 
    /**
     * 数值:200
     */
    public final static int TWO_HUNDRED = 200;
 
    public static final double D1024 = 1024.0;
 
    public static final double D1050 = 1050.0;
 
    public static final int I12 = 12;
 
    public static final int I24 = 24;
 
    public static final int I31 = 31;
 
    public static final int I60 = 60;
 
    public static final int I2050 = 2050;
 
    /**
     * 字符1
     */
    public final static String S1 = "1";
 
    /**
     * 等号
     */
    public final static String EQ = "=";
 
    /**
     * 字符点
     */
    public final static String POINT = ".";
 
    /**
     * 逗号
     */
    public final static String COMMA = ",";
 
    /**
     * 正斜杠
     */
    public final static String SLASH = "/";
 
    public final static String ZIP = ".zip";
 
    public final static String XLS = ".xls";
 
    public final static String XLSX = ".xlsx";
 
    public final static String MDB = ".mdb";
 
    public final static String SHP = ".shp";
 
    public final static String GDB = ".gdb";
 
    public final static String IMG = ".img";
 
    public final static String MPT = ".mpt";
 
    public final static String D3DML = ".3dml";
 
    public final static String TIF = ".tif";
 
    public final static String TIFF = ".tiff";
 
    public final static String ADMIN = "admin";
 
    /**
     * 版本号
     */
    public final static String VERSION = "1.0.0";
 
    /**
     * 令牌键
     */
    public final static String TOKEN_KEY = "token";
 
    /**
     * Cookie中令牌键
     */
    public final static String TOKEN_COOKIE_KEY = "token";
 
    /**
     * 文本编码方式
     */
    public final static String TEXT_ENCODER = "UTF-8";
 
    /**
     * 总质检
     */
    public final static String CHECK_MAIN = "checkMain";
 
    /**
     * Object对象
     */
    public final static String OBJECT = "java.lang.Object";
 
    /**
     * Cookie中druid键
     */
    public final static String DRUID_COOKIE_KEY = "JSESSIONID";
 
    public final static String YES = "YES";
 
    public final static String NO = "NO";
 
    /**
     * 线路
     */
    public final static String ROUTE = "线路";
 
    /**
     * 穿跨越
     */
    public final static String CROSSING = "穿跨越";
 
    public final static String LINESTRING = "LINESTRING";
 
    public final static String MULTILINESTRING = "MULTILINESTRING";
 
    public final static String POLYGON = "POLYGON";
 
    public final static String MULTIPOLYGON = "MULTIPOLYGON";
 
    /**
     * 16进制
     */
    public static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
 
    /**
     * 密码正则表达式
     */
    public final static String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$";
 
    /**
     * MPT文件扩展名
     */
    public final static List<String> MPT_EXT = new ArrayList<>(Arrays.asList(".midx", ".strmi"));
 
    /**
     * IMG文件扩展名
     */
    public final static List<String> IMG_EXT = new ArrayList<>(Arrays.asList(".rrd", ".img.aux.xml", ".hdr", ".img.enp", ".img.xml"));
 
    /**
     * TIF文件扩展名
     */
    public final static List<String> TIF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".tif.ovr", ".tif.aux.xml", ".tif.enp", ".tif.xml"));
 
    /**
     * TIFF文件扩展名
     */
    public final static List<String> TIFF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".tiff.ovr", ".tiff.aux.xml", ".tiff.enp", ".tiff.xml"));
 
    /**
     * SHP文件扩展名
     */
    public final static List<String> SHP_EXT = new ArrayList<>(Arrays.asList(".shx", ".dbf", ".prj", ".cpg"));
 
    /**
     * Mapper排除扩展名
     */
    public final static List<String> MAPPER_EXCLUDE_EXT = new ArrayList<>(Arrays.asList(".img.aux.xml", ".img.xml", ".tif.aux.xml", ".tif.xml", ".tiff.aux.xml", ".tiff.xml", ".shp.xml"));
 
    /**
     * 所有文件扩展名
     */
    public final static List<String> ALL_EXTENSION = new ArrayList<>(Arrays.asList(".txt", ".xml", ".pdf", ".xls", ".xlsx", ".doc", ".docx", ".ppt", ".pptx", ".shp", ".gdb", ".mdb", ".dwg", ".las", ".laz", ".cpt", ".mpt", ".fly", ".efb", ".g3d", ".fbx", ".obj", ".3dm", ".3dml", ".osgb", ".rvt", ".ifc", ".jpg", ".png", ".img", ".tif", ".tiff", ".bmp", ".gif", ".rmvb", ".rm", ".mp3", ".mp4", ".avi", ".wma", ".wmv", ".7z", ".rar", ".zip"));
 
    /**
     * 插入排除字段
     */
    public final static List<String> INSERT_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "objectid", "updateuser", "updatetime", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName"));
 
    /**
     * 更新排除字段
     */
    public final static List<String> UPDATE_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("objectid", "createuser", "createtime", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName"));
 
    /**
     * 读取排除字段
     */
    public final static List<String> READ_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "eventid", "parentid", "objectid", "dirid", "depid", "verid", "createtime", "createuser", "updateuser", "updatetime", "shape_leng", "shape_area", "serialversionuid", "dirname", "depname", "vername", "createname", "updatename"));
 
    /**
     * MDB排除字段
     */
    public final static List<String> MDB_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("Shape", "SHAPE_LENG", "Shape_Length", "Shape_Area", "OBJECTID_1"));
 
    /**
     * 标绘Shp排除字段
     */
    public final static List<String> MARK_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("wkt", "geom", "objectid", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName"));
 
    /**
     * GDB排除字段
     */
    public final static List<String> GDB_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("geom", "objectid", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName"));
 
    /**
     * 管线分析表名集合
     */
    public final static List<String> PIPE_ANALYSIS_TABS = new ArrayList<>(Arrays.asList("bd.dlg_25w_hydl", "bd.dlg_25w_lrdl", "bd.dlg_25w_lrrl", "bd.dlg_25w_hyda"));
 
    /**
     * 管线排除字段
     */
    public final static List<String> PIPE_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("serialVersionUID", "tabs", "pwd", "gid", "wkt"));
}