xiangpei
2024-08-21 4082ee4d1cd2357771d7f844a57fe4932a1dd4c4
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
package com.ycl.platform.domain.result.UY;
 
import com.ycl.platform.domain.result.BaseResult;
import lombok.Data;
import org.apache.commons.lang3.ArrayUtils;
import org.springframework.data.mongodb.core.index.TextIndexed;
import org.springframework.data.mongodb.core.mapping.Document;
import utils.StringUtils;
 
import java.util.*;
 
/**
 * 一机一档
 *
 * @author gonghl
 * @since 2024-4-19 11:33:34
 */
@Data
@Document(collection = "uy_one_machine_file")
public class OneMachineFileResult extends BaseResult {
 
    /**
     * 设备编码,20位:中心编码、行业编码、设备类型、网络标识、设备序号,与联网平台/共享平台国标编码一致。
     */
    @TextIndexed
    private String SBBM;
 
    /**
     * 设备名称,标识设备的基本名称。命名方式参照《GAT751-2008视频图像文字标注规范》。
     */
    @TextIndexed
    private String SBMC;
 
    /**
     * 摄像机采集区域(参考文档解析)
     */
    @TextIndexed
    private String SXJCJQY;
 
    /**
     * 监控点位类型,1-一类视频监控点;2-二类视频监控点;3-三类视频监控点;4-公安内部视频监控点;9-其他点位。
     * 参照公安部《关于进一步加强公安机关视频图像信息应用工作的意见》(公通字﹝2015﹞4号)定义。
     */
    private String JKDWLX;
 
    /**
     * IPV4地址,摄像机IP地址。
     */
    @TextIndexed
    private String IP;
 
    /**
     * IPV6地址,摄像机扩展IP地址。
     */
//    private String IPV6;
 
    /**
     * 经度。
     */
    private Double JD;
 
    /**
     * 纬度。
     */
    private Double WD;
 
    /**
     * 摄像机功能类型,取值范围(多选) : [1.视频监控;2.车辆识别;3.人员识别;] 数据格式[填入多个值并以/隔开。例如  1/2]
     */
    private String SXJGNLX;
 
    /**
     * MAC地址,摄像机MAC地址。
     */
    @TextIndexed
    private String MACDZ;
 
    /**
     * 设备状态,1-在用;2-维修;3-拆除。
     */
    private String SBZT;
 
    //---------------------------------------------------------------------
 
    /**
     * 设备厂商,编码1-海康威视;2-大华;3-天地伟业;4-科达;5-安讯士;6-博世;7-亚安;8-英飞拓;9-宇视;10-海信;11-中星电子;12-明景;13-联想;14-中兴;99-其他。
     */
    @TextIndexed
    private String SBCS;
 
    /**
     * 行政区域,行政区划、籍贯省市县代码。参照《GB/T 2260 中华人民共和国行政区划代码》。
     */
    private String XZQY;
 
    /**
     * 设备型号,描述设备的具体型号。
     */
    private String SBXH;
 
    /**
     * 点位俗称,监控点位附近如有标志性建筑、场所或监控点位处于公众约定俗成的地点,可以填写标志性建设名称和地点俗称。
     */
    @TextIndexed
    private String DWSC;
 
    /**
     * 摄像机类型,1-球机;2-半球;3-固定枪机;4-遥控枪机;5-卡口枪机;99-未知。
     */
    private String SXJLX;
 
    /**
     * 补光属性,1-无补光、2-红外补光、3-白光补光、9-其他补光。
     */
    private String BGSX;
 
    /**
     * 摄像机编码格式,1-MPEG-4;2-H.264;3-SVAC;4-H.265。
     */
    private String SXJBMGS;
 
    /**
     * 安装地址,参照GA/T 751-2008标准,应相对细化准确。
     * 参考范式:街道+门牌号码+单位名称。高速公路、国道等点位可参照“公路名称+公里数”范式。
     */
    private String AZDZ;
 
    /**
     * 摄像机位置类型,1-省际检查站、2-党政机关、3-车站码头、4-中心广场、5-体育场馆、6-商业中心、7-宗教场所、8-校园周边、9-治安复杂区域、10-交通干线、11-医院周边、12-金融机构周边、13-危险物品场所周边、14-博物馆展览馆、15-重点水域、航道、96-市际公安检查站;97-涉外场所;98-边境沿线;99-旅游景区,多选各参数以“/”分隔。
     */
    private String SXJWZLX;
 
    /**
     * 监视方位,1-东、2-西、3-南、4-北、5-东南、6-东北、7-西南、8-西北、9-全向。
     */
    private String JSFW;
 
    /**
     * 摄像机场景预设照片URL,上传摄像机场景预设照片后生成的照片地址URL。
     */
    private String SXJCJYSZP;
 
    /**
     * 联网属性,0-已联网;1-未联网。
     */
    private String LWSX;
 
    /**
     * 所属辖区公安机关,采用公安组织机构代码(由GA/T 380规定),公安机关建设单位或者社会资源接入后的使用单位,注明到所属辖区公安机关派出所。
     */
    private String SSXQGAJG;
 
    /**
     * 安装时间,摄像机安装使用时间。
     */
    private Date AZSJ;
 
    /**
     * 管理单位,摄像机所属管理单位名称。
     */
    private String GLDW;
 
    /**
     * 管理单位联系方式,摄像机所属管理单位联系人的联系方式(电话号码)。
     */
    private String GLDWLXFS;
 
    /**
     * 录像保存天数。
     */
    private Integer LXBCTS;
 
    /**
     * 所属部门/行业,1-公安机关;2-环保部门;3-文博部门;4-医疗部门;5-旅游管理;6-新闻广电;7-食品医药监督管理部门;8-教育管理部门;9-检察院;10-法院;11-金融部门;12-交通部门;13-住房和城乡建设部门;14-水利部门;15-林业部门;16-安全生产监督部门;17-市政市容委;18-国土局,可扩展,多选各参数以“/”分隔。
     */
    private String SSBMHY;
 
 
    public String getJKDWLX() {
        if (Objects.equals(JKDWLX, "1")) {
            this.JKDWLX = "一类视频监控点";
        }
        if (Objects.equals(JKDWLX, "2")) {
            this.JKDWLX = "二类视频监控点";
        }
        if (Objects.equals(JKDWLX, "3")) {
            this.JKDWLX = "三类视频监控点";
        }
        if (Objects.equals(JKDWLX, "4")) {
            this.JKDWLX = "公安内部视频监控点";
        }
        if (Objects.equals(JKDWLX, "9")) {
            this.JKDWLX = "其他点位";
        }
        return JKDWLX;
    }
 
    public String getSXJGNLX() {
        List<String> sxjgnlx = new ArrayList<>();
        if (StringUtils.contains(SXJGNLX, "1")) {
            sxjgnlx.add("视频监控");
        }
        if (StringUtils.contains(SXJGNLX, "2")) {
            sxjgnlx.add("车辆识别");
        }
        if (StringUtils.contains(SXJGNLX, "3")) {
            sxjgnlx.add("人员识别");
        }
        if (!sxjgnlx.isEmpty()) {
            this.SXJGNLX = String.join("/", sxjgnlx);
        }
        return SXJGNLX;
    }
 
    public String getSBZT() {
        if (Objects.equals(SBZT, "1")) {
            this.SBZT = "在用";
        }
        if (Objects.equals(SBZT, "2")) {
            this.SBZT = "维修";
        }
        if (Objects.equals(SBZT, "3")) {
            this.SBZT = "拆除";
        }
        return SBZT;
    }
 
    public String getSBCS() {
        if (Objects.equals(SBCS, "1")) {
            this.SBCS = "海康威视";
        }
        if (Objects.equals(SBCS, "2")) {
            this.SBCS = "大华";
        }
        if (Objects.equals(SBCS, "3")) {
            this.SBCS = "天地伟业";
        }
        if (Objects.equals(SBCS, "4")) {
            this.SBCS = "科达";
        }
        if (Objects.equals(SBCS, "5")) {
            this.SBCS = "安讯士";
        }
        if (Objects.equals(SBCS, "6")) {
            this.SBCS = "博世";
        }
        if (Objects.equals(SBCS, "7")) {
            this.SBCS = "亚安";
        }
        if (Objects.equals(SBCS, "8")) {
            this.SBCS = "英飞拓";
        }
        if (Objects.equals(SBCS, "9")) {
            this.SBCS = "宇视";
        }
        if (Objects.equals(SBCS, "10")) {
            this.SBCS = "海信";
        }
        if (Objects.equals(SBCS, "11")) {
            this.SBCS = "中星电子";
        }
        if (Objects.equals(SBCS, "12")) {
            this.SBCS = "明景";
        }
        if (Objects.equals(SBCS, "13")) {
            this.SBCS = "联想";
        }
        if (Objects.equals(SBCS, "14")) {
            this.SBCS = "中兴";
        }
        if (Objects.equals(SBCS, "99")) {
            this.SBCS = "其他";
        }
        return SBCS;
    }
 
    public String getSXJLX() {
        if (Objects.equals(SXJLX, "1")) {
            this.SXJLX = "球机";
        }
        if (Objects.equals(SXJLX, "2")) {
            this.SXJLX = "半球";
        }
        if (Objects.equals(SXJLX, "3")) {
            this.SXJLX = "固定枪机";
        }
        if (Objects.equals(SXJLX, "4")) {
            this.SXJLX = "遥控枪机";
        }
        if (Objects.equals(SXJLX, "5")) {
            this.SXJLX = "卡口枪机";
        }
        if (Objects.equals(SXJLX, "99")) {
            this.SXJLX = "未知";
        }
        return SXJLX;
    }
 
 
    public String getBGSX() {
        if (Objects.equals(BGSX, "1")) {
            this.BGSX = "无补光";
        }
        if (Objects.equals(BGSX, "2")) {
            this.BGSX = "红外补光";
        }
        if (Objects.equals(BGSX, "3")) {
            this.BGSX = "白光补光";
        }
        if (Objects.equals(BGSX, "9")) {
            this.BGSX = "其他补光";
        }
        return BGSX;
    }
 
    public String getSXJBMGS() {
        if (Objects.equals(SXJBMGS, "1")) {
            this.SXJBMGS = "MPEG-4";
        }
        if (Objects.equals(SXJBMGS, "2")) {
            this.SXJBMGS = "H.264";
        }
        if (Objects.equals(SXJBMGS, "3")) {
            this.SXJBMGS = "SVAC";
        }
        if (Objects.equals(SXJBMGS, "4")) {
            this.SXJBMGS = "H.265";
        }
        return SXJBMGS;
    }
 
    public String getSXJWZLX() {
        List<String> wzlx = new ArrayList<>();
        if (StringUtils.isBlank(SXJWZLX)) {
            return SXJWZLX;
        }
        String[] split = SXJWZLX.split("/");
        if (ArrayUtils.contains(split, "1")) {
            wzlx.add("省际检查站");
        }
        if (ArrayUtils.contains(split, "2")) {
            wzlx.add("党政机关");
        }
        if (ArrayUtils.contains(split, "3")) {
            wzlx.add("车站码头");
        }
        if (ArrayUtils.contains(split, "4")) {
            wzlx.add("中心广场");
        }
        if (ArrayUtils.contains(split, "5")) {
            wzlx.add("体育场馆");
        }
        if (ArrayUtils.contains(split, "6")) {
            wzlx.add("商业中心");
        }
        if (ArrayUtils.contains(split, "7")) {
            wzlx.add("宗教场所");
        }
        if (ArrayUtils.contains(split, "8")) {
            wzlx.add("校园周边");
        }
        if (ArrayUtils.contains(split, "9")) {
            wzlx.add("治安复杂区域");
        }
        if (ArrayUtils.contains(split, "10")) {
            wzlx.add("交通干线");
        }
        if (ArrayUtils.contains(split, "11")) {
            wzlx.add("医院周边");
        }
        if (ArrayUtils.contains(split, "12")) {
            wzlx.add("金融机构周边");
        }
        if (ArrayUtils.contains(split, "13")) {
            wzlx.add("危险物品场所周边");
        }
        if (ArrayUtils.contains(split, "14")) {
            wzlx.add("博物馆展览馆");
        }
        if (ArrayUtils.contains(split, "15")) {
            wzlx.add("重点水域、航道");
        }
        if (ArrayUtils.contains(split, "96")) {
            wzlx.add("市际公安检查站");
        }
        if (ArrayUtils.contains(split, "97")) {
            wzlx.add("涉外场所");
        }
        if (ArrayUtils.contains(split, "98")) {
            wzlx.add("边境沿线");
        }
        if (ArrayUtils.contains(split, "99")) {
            wzlx.add("旅游景区");
        }
        this.SXJWZLX = String.join("/", wzlx);
        return SXJWZLX;
    }
 
    public String getJSFW() {
        if (Objects.equals(JSFW, "1")) {
            this.JSFW = "东";
        }
        if (Objects.equals(JSFW, "2")) {
            this.JSFW = "西";
        }
        if (Objects.equals(JSFW, "3")) {
            this.JSFW = "南";
        }
        if (Objects.equals(JSFW, "4")) {
            this.JSFW = "北";
        }
        if (Objects.equals(JSFW, "5")) {
            this.JSFW = "东南";
        }
        if (Objects.equals(JSFW, "6")) {
            this.JSFW = "东北";
        }
        if (Objects.equals(JSFW, "7")) {
            this.JSFW = "西南";
        }
        if (Objects.equals(JSFW, "8")) {
            this.JSFW = "西北";
        }
        if (Objects.equals(JSFW, "9")) {
            this.JSFW = "全向";
        }
        return JSFW;
    }
 
    public String getLWSX() {
        if (Objects.equals(LWSX, "0")) {
            this.LWSX = "已联网";
        }
        if (Objects.equals(LWSX, "1")) {
            this.LWSX = "未联网";
        }
        return LWSX;
    }
 
    public String getSSBMHY() {
        List<String> ssbmhy = new ArrayList<>();
        if (StringUtils.isBlank(SSBMHY)) {
            return SSBMHY;
        }
        String[] split = SSBMHY.split("/");
        if (ArrayUtils.contains(split, "1")) {
            ssbmhy.add("公安机关");
        }
        if (ArrayUtils.contains(split, "2")) {
            ssbmhy.add("环保部门");
        }
        if (ArrayUtils.contains(split, "3")) {
            ssbmhy.add("文博部门");
        }
        if (ArrayUtils.contains(split, "4")) {
            ssbmhy.add("医疗部门");
        }
        if (ArrayUtils.contains(split, "5")) {
            ssbmhy.add("旅游管理");
        }
        if (ArrayUtils.contains(split, "6")) {
            ssbmhy.add("新闻广电");
        }
        if (ArrayUtils.contains(split, "7")) {
            ssbmhy.add("食品医药监督管理部门");
        }
        if (ArrayUtils.contains(split, "8")) {
            ssbmhy.add("教育管理部门");
        }
        if (ArrayUtils.contains(split, "9")) {
            ssbmhy.add("检察院");
        }
        if (ArrayUtils.contains(split, "10")) {
            ssbmhy.add("法院");
        }
        if (ArrayUtils.contains(split, "11")) {
            ssbmhy.add("金融部门");
        }
        if (ArrayUtils.contains(split, "12")) {
            ssbmhy.add("交通部门");
        }
        if (ArrayUtils.contains(split, "13")) {
            ssbmhy.add("住房和城乡建设部门");
        }
        if (ArrayUtils.contains(split, "14")) {
            ssbmhy.add("水利部门");
        }
        if (ArrayUtils.contains(split, "15")) {
            ssbmhy.add("林业部门");
        }
        if (ArrayUtils.contains(split, "16")) {
            ssbmhy.add("安全生产监督部门");
        }
        if (ArrayUtils.contains(split, "17")) {
            ssbmhy.add("市政市容委");
        }
        if (ArrayUtils.contains(split, "18")) {
            ssbmhy.add("国土局");
        }
        this.SSBMHY = String.join("/", ssbmhy);
        return SSBMHY;
    }
}