Constants.java
4.8 KB
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
package cn.com.glsx.stdinterface.common.constants;
/**
* 公共的常量类
*/
public final class Constants {
/**
* 车辆价格临界值 100 万
*/
public final static int VEHICLE_PRICE_LIMIT = Integer.MAX_VALUE;
/**
* 每次调用远程接口的尝试次数
*/
public final static int TRY_COUNT = 3;
/**
* 每次尝试的等待时间
*/
public final static int TRY_WAIT_TIME = 1000;
/**
* 时间格式
*/
public final static String TIME_FORMAT = "HH:mm:ss";
/**
* 日期格式
*/
public final static String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
/**
* 投保的公司 GL:新人保保单2020 本地处理
*/
public final static String INSURANCE_COMPANY_GL = "GL";
public final static String[] parsePatterns = new String[]{"yyyy-MM-dd", "yyyy/MM/dd"};
// 特约长度
public final static int SPE_BR_LEN = 166;
/**
* 保单的状态 0 等待投保
*/
public static final int INSURANCE_WAIT_SEND_STATUS = 0;
/**
* 保单的状态 1 投保成功
*/
public static final int INSURANCE_SUCCESS_SEND_STATUS = 1;
/**
* 保单的状态 2 投保失败
*/
public static final int INSURANCE_FAIL_SEND_STATUS = 2;
/**
* 保单的状态 3 退保
*/
public static final int INSURANCE_CANCEL_SEND_STATUS = 3;
/**
* 保单的状态 4 草稿
*/
public static final int INSURANCE_DRAFT_STATUS = 4;
/**
* 保单的状态 5 待激活
*/
public static final int INSURANCE_WAIT_ACTIVE_STATUS = 5;
/**
* 保单的状态 6 删除
*/
public static final int INSURANCE_DELETE_STATUS = 6;
public static String PICC_SUCC = "0";
/**
* xlsx 文件拓展名
*/
public static final String XLSX_FILE_EXTENSION = "xlsx";
/**
* 断电报警
**/
public final static int GPS_ALARM_BLACKOUT = 1;
/**
* 光感报警 99
*/
public static final int ALARM_REC_LIGHT = 99;
/**
* 其他公司 设备离线时间:三天 单位 s/秒
*/
public static final long OFFLINE_TIME_OTHER = 3 * 24 * 3600L;
/**
* 位置有效性验证
*/
public static class Verification {
/**
* 有源设备定位有效时间4h内;单位毫秒
*/
public static final long WIRED_TIME = 14400000;
/**
* 无源源设备定位有效时间24h10min内;单位毫秒
*/
public static final long WIRELESS_TIME = 87000000;
/**
* 设备定位状态 0有效定位
*/
public static final int SN_VALID = 0;
/**
* 设备定位状态 1无效定位
*/
public static final int SN_INVALID = 1;
}
/**
* 设备有源无源状态
*/
public static class DeviceSource {
/**
* 有源设备
*/
public static final int WIRED = 1;
/**
* 无源设备
*/
public static final int WIRELESS = 0;
}
/**
* 设备车辆行驶状态
*/
public static class DeviceOnline {
/**
* 离线时间:三天(单位毫秒)
*/
public static final long TIME_TWENTY_HOURS = 259200000;
/**
* 离线时间:六分钟;单位毫秒
*/
public static final long TIME_SIX_MINITES = 360000;
/**
* 行驶
*/
public static final int DRIVING = 0;
/**
* 静止
*/
public static final int STANDSTILL = 1;
/**
* 离线
*/
public static final int OFFLINE = 2;
/**
* 在线
*/
public static final int ONLINE = 3;
}
public static class DeviceActived {
/**
* 设备未激活(0=未激活 1=激活)
*/
public static final int UN_ACTIVED = 0;
/**
* 设备已激活(0=未激活 1=激活)
*/
public static final int ACTIVED = 1;
}
public static class LocationType {
/**
* 定位类型(0、GPS,1、基站)
*/
public static final int GPS = 0;
/**
* 定位类型(0、GPS,1、基站)
*/
public static final int BS = 1;
}
/**
* 厂商ID-博实结
*/
public static final String BSJ_FACTORY_ID = "BSJ";
/**
* 响应状态
*/
public static final int STATUS_RESPONSE = 2;
/**
* 生效状态
*/
public static final int STATUS_ABLE = 1;
/**
* 失效状态
*/
public static final int STATUS_UNABLE = 0;
/**
* 发送中
*/
public static final int STATUS_RESPONSE_SENDING = 1;
/**
* 永久有效
*/
public static final int FREQ_DURATION_PERMANENT = -1;
}