道路环境监测node后端和java后台代码
wangrong
2021-11-24 ac1a5f4542431c28b5865acbeb81985cefdbc2a8
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
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
package com.example.demo.model.roades;
 
import com.example.demo.handler.OperationHandlerImpl;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.expr.ExprBool;
import xyz.erupt.annotation.sub_erupt.Power;
import xyz.erupt.annotation.sub_erupt.RowOperation;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.EditType;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.annotation.sub_field.sub_edit.*;
import xyz.erupt.jpa.model.BaseModel;
import xyz.erupt.upms.handler.ViaMenuValueCtrl;
 
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;
 
@Erupt(name = "TaxiRealtimedata",
        power = @Power(importable = true, export = true),
        orderBy = "posttime desc",
        rowOperation = {
                @RowOperation(
                        icon = "fa fa-ban",
                        code = "PM25",
                        eruptClass = FlagParams.class,
                        title = "批量标记",
                        mode = RowOperation.Mode.MULTI,
                        operationParam = "{\"kpi\":\"PM25\"}",
                        show = @ExprBool(
                                exprHandler = ViaMenuValueCtrl.class, //根据菜单类型值控制是否显示的实现类
                                params = "PM25Btn"  //权限标识,菜单类型为按钮,类型值为testBtn即可控制该按钮
                        ),
                        operationHandler = OperationHandlerImpl.class)
        }
)
@Table(name = "taxi_realtimedata")
@Entity
public class TaxiRealtimedata extends BaseModel {
 
    @EruptField(
            views = @View(
                    title = "posttime", sortable = true
            ),
            edit = @Edit(
                    title = "posttime",
                    type = EditType.DATE, search = @Search(vague = true,notNull = true), notNull = true,
                    dateType = @DateType(type = DateType.Type.DATE_TIME)
            )
    )
    private Date posttime;
 
    @EruptField(
            views = @View(
                    title = "MN", width = "80px", sortable = true
            ),
            edit = @Edit(
                    title = "MN",
                    type = EditType.INPUT, search = @Search, notNull = true,
                    inputType = @InputType
            )
    )
    private String MN;
 
    @EruptField(
            views = @View(
                    title = "PM25", sortable = true
            ),
            edit = @Edit(
                    title = "PM25",
                    type = EditType.NUMBER, search = @Search, notNull = true,
                    numberType = @NumberType
            )
    )
    private Integer PM25;
 
    @EruptField(
            views = @View(
                    title = "PM10", sortable = true
            ),
            edit = @Edit(
                    title = "PM10",
                    type = EditType.NUMBER, search = @Search, notNull = true,
                    numberType = @NumberType
            )
    )
    private Integer PM10;
 
    @EruptField(
            views = @View(
                    title = "NO2", sortable = true
            ),
            edit = @Edit(
                    title = "NO2",
                    type = EditType.NUMBER, search = @Search, notNull = true,
                    numberType = @NumberType
            )
    )
    private Integer NO2;
 
    @EruptField(
            views = @View(
                    title = "O3", sortable = true
            ),
            edit = @Edit(
                    title = "O3",
                    type = EditType.NUMBER, search = @Search, notNull = true,
                    numberType = @NumberType
            )
    )
    private Integer O3;
 
    @EruptField(
            views = @View(
                    title = "NO", sortable = true
            ),
            edit = @Edit(
                    title = "NO",
                    type = EditType.NUMBER, search = @Search, notNull = true,
                    numberType = @NumberType
            )
    )
    private Integer NO;
 
    @EruptField(
            views = @View(
                    title = "CO", sortable = true
            ),
            edit = @Edit(
                    title = "CO",
                    type = EditType.NUMBER, search = @Search, notNull = true,
                    numberType = @NumberType
            )
    )
    private Integer CO;
 
    @EruptField(
            views = @View(
                    title = "NOX", sortable = true
            ),
            edit = @Edit(
                    title = "NOX",
                    type = EditType.NUMBER, search = @Search,
                    numberType = @NumberType
            )
    )
    private Integer NOX;
 
    @EruptField(
            views = @View(
                    title = "TSP", sortable = true
            ),
            edit = @Edit(
                    title = "TSP",
                    type = EditType.NUMBER, search = @Search,
                    numberType = @NumberType
            )
    )
    private Integer TSP;
 
    @EruptField(
            views = @View(
                    title = "dustflag", width = "50px", sortable = true
            ),
            edit = @Edit(
                    title = "dustflag",
                    type = EditType.CHOICE, search = @Search,
                    choiceType = @ChoiceType(vl = {@VL(value = "A", label = "A"),@VL(value = "B", label = "B"),@VL(value = "C", label = "C"),@VL(value = "D", label = "D"),@VL(value = "E", label = "E"),@VL(value = "F", label = "F"),@VL(value = "G", label = "G"),@VL(value = "H", label = "H"),@VL(value = "I", label = "I"),@VL(value = "J", label = "J"),@VL(value = "K", label = "K"),@VL(value = "L", label = "L"),@VL(value = "M", label = "M"),@VL(value = "N", label = "N"),@VL(value = "O", label = "O"),@VL(value = "P", label = "P"),@VL(value = "Q", label = "Q"),@VL(value = "R", label = "R"),@VL(value = "S", label = "S"),@VL(value = "T", label = "T"),@VL(value = "U", label = "U"),@VL(value = "V", label = "V"),@VL(value = "W", label = "W"),@VL(value = "X", label = "X"),@VL(value = "Y", label = "Y"), @VL(value = "Z", label = "Z"), @VL(value = "null", label = "null")})
            )
    )
    private String dustflag;
 
    @EruptField(
            views = @View(
                    title = "no2flag", width = "50px", sortable = true
            ),
            edit = @Edit(
                    title = "no2flag",
                    type = EditType.CHOICE, search = @Search,
choiceType = @ChoiceType(vl = {@VL(value = "A", label = "A"),@VL(value = "B", label = "B"),@VL(value = "C", label = "C"),@VL(value = "D", label = "D"),@VL(value = "E", label = "E"),@VL(value = "F", label = "F"),@VL(value = "G", label = "G"),@VL(value = "H", label = "H"),@VL(value = "I", label = "I"),@VL(value = "J", label = "J"),@VL(value = "K", label = "K"),@VL(value = "L", label = "L"),@VL(value = "M", label = "M"),@VL(value = "N", label = "N"),@VL(value = "O", label = "O"),@VL(value = "P", label = "P"),@VL(value = "Q", label = "Q"),@VL(value = "R", label = "R"),@VL(value = "S", label = "S"),@VL(value = "T", label = "T"),@VL(value = "U", label = "U"),@VL(value = "V", label = "V"),@VL(value = "W", label = "W"),@VL(value = "X", label = "X"),@VL(value = "Y", label = "Y"), @VL(value = "Z", label = "Z"), @VL(value = "null", label = "null")})
            )
    )
    private String no2flag;
 
    @EruptField(
            views = @View(
                    title = "noflag", width = "50px", sortable = true
            ),
            edit = @Edit(
                    title = "noflag",
                    type = EditType.CHOICE, search = @Search,
choiceType = @ChoiceType(vl = {@VL(value = "A", label = "A"),@VL(value = "B", label = "B"),@VL(value = "C", label = "C"),@VL(value = "D", label = "D"),@VL(value = "E", label = "E"),@VL(value = "F", label = "F"),@VL(value = "G", label = "G"),@VL(value = "H", label = "H"),@VL(value = "I", label = "I"),@VL(value = "J", label = "J"),@VL(value = "K", label = "K"),@VL(value = "L", label = "L"),@VL(value = "M", label = "M"),@VL(value = "N", label = "N"),@VL(value = "O", label = "O"),@VL(value = "P", label = "P"),@VL(value = "Q", label = "Q"),@VL(value = "R", label = "R"),@VL(value = "S", label = "S"),@VL(value = "T", label = "T"),@VL(value = "U", label = "U"),@VL(value = "V", label = "V"),@VL(value = "W", label = "W"),@VL(value = "X", label = "X"),@VL(value = "Y", label = "Y"), @VL(value = "Z", label = "Z"), @VL(value = "null", label = "null")})
            )
    )
    private String noflag;
 
    @EruptField(
            views = @View(
                    title = "coflag", width = "50px", sortable = true
            ),
            edit = @Edit(
                    title = "coflag",
                    type = EditType.CHOICE, search = @Search,
choiceType = @ChoiceType(vl = {@VL(value = "A", label = "A"),@VL(value = "B", label = "B"),@VL(value = "C", label = "C"),@VL(value = "D", label = "D"),@VL(value = "E", label = "E"),@VL(value = "F", label = "F"),@VL(value = "G", label = "G"),@VL(value = "H", label = "H"),@VL(value = "I", label = "I"),@VL(value = "J", label = "J"),@VL(value = "K", label = "K"),@VL(value = "L", label = "L"),@VL(value = "M", label = "M"),@VL(value = "N", label = "N"),@VL(value = "O", label = "O"),@VL(value = "P", label = "P"),@VL(value = "Q", label = "Q"),@VL(value = "R", label = "R"),@VL(value = "S", label = "S"),@VL(value = "T", label = "T"),@VL(value = "U", label = "U"),@VL(value = "V", label = "V"),@VL(value = "W", label = "W"),@VL(value = "X", label = "X"),@VL(value = "Y", label = "Y"), @VL(value = "Z", label = "Z"), @VL(value = "null", label = "null")})
            )
    )
    private String coflag;
 
    @EruptField(
            views = @View(
                    title = "Flag", width = "50px", sortable = true
            ),
            edit = @Edit(
                    title = "Flag",
                    type = EditType.CHOICE, search = @Search,
choiceType = @ChoiceType(vl = {@VL(value = "A", label = "A"),@VL(value = "B", label = "B"),@VL(value = "C", label = "C"),@VL(value = "D", label = "D"),@VL(value = "E", label = "E"),@VL(value = "F", label = "F"),@VL(value = "G", label = "G"),@VL(value = "H", label = "H"),@VL(value = "I", label = "I"),@VL(value = "J", label = "J"),@VL(value = "K", label = "K"),@VL(value = "L", label = "L"),@VL(value = "M", label = "M"),@VL(value = "N", label = "N"),@VL(value = "O", label = "O"),@VL(value = "P", label = "P"),@VL(value = "Q", label = "Q"),@VL(value = "R", label = "R"),@VL(value = "S", label = "S"),@VL(value = "T", label = "T"),@VL(value = "U", label = "U"),@VL(value = "V", label = "V"),@VL(value = "W", label = "W"),@VL(value = "X", label = "X"),@VL(value = "Y", label = "Y"), @VL(value = "Z", label = "Z"), @VL(value = "null", label = "null")})
            )
    )
    private String Flag;
 
    @EruptField(
            views = @View(
                    title = "TVOC", sortable = true
            ),
            edit = @Edit(
                    title = "TVOC",
                    type = EditType.NUMBER,
                    numberType = @NumberType
            )
    )
    private Integer TVOC;
 
    @EruptField(
            views = @View(
                    title = "NO2_ACT", sortable = true
            ),
            edit = @Edit(
                    title = "NO2_ACT",
                    type = EditType.NUMBER,
                    numberType = @NumberType
            )
    )
    private Integer NO2_ACT;
 
    @EruptField(
            views = @View(
                    title = "NO2_REF", sortable = true
            ),
            edit = @Edit(
                    title = "NO2_REF",
                    type = EditType.NUMBER,
                    numberType = @NumberType
            )
    )
    private Integer NO2_REF;
 
    @EruptField(
            views = @View(
                    title = "NO_ACT", sortable = true
            ),
            edit = @Edit(
                    title = "NO_ACT",
                    type = EditType.NUMBER,
                    numberType = @NumberType
            )
    )
    private Integer NO_ACT;
 
    @EruptField(
            views = @View(
                    title = "NO_REF", sortable = true
            ),
            edit = @Edit(
                    title = "NO_REF",
                    type = EditType.NUMBER,
                    numberType = @NumberType
            )
    )
    private Integer NO_REF;
 
    @EruptField(
            views = @View(
                    title = "CO_ACT", sortable = true
            ),
            edit = @Edit(
                    title = "CO_ACT",
                    type = EditType.NUMBER,
                    numberType = @NumberType
            )
    )
    private Integer CO_ACT;
 
    @EruptField(
            views = @View(
                    title = "CO_REF", sortable = true
            ),
            edit = @Edit(
                    title = "CO_REF",
                    type = EditType.NUMBER,
                    numberType = @NumberType
            )
    )
    private Integer CO_REF;
 
    @EruptField(
            views = @View(
                    title = "gid_100", sortable = true, show = true
            ),
            edit = @Edit(
                    title = "gid_100",
                    type = EditType.INPUT, show = false,
                    inputType = @InputType
            )
    )
    private String gid_100;
 
    @EruptField(
            views = @View(
                    title = "LON", sortable = true, show = false
            ),
            edit = @Edit(
                    title = "LON",
                    type = EditType.NUMBER, show = false,
                    numberType = @NumberType
            )
    )
    private Double LON;
 
    @EruptField(
            views = @View(
                    title = "LAT", sortable = true, show = false
            ),
            edit = @Edit(
                    title = "LAT",
                    type = EditType.NUMBER, show = false,
                    numberType = @NumberType
            )
    )
    private Double LAT;
 
    @EruptField(
            views = @View(
                    title = "SPEED", sortable = true, show = false
            ),
            edit = @Edit(
                    title = "SPEED",
                    type = EditType.NUMBER, show = false,
                    numberType = @NumberType
            )
    )
    private Integer SPEED;
 
    @EruptField(
            views = @View(
                    title = "LON_BAIDU", sortable = true, show = false
            ),
            edit = @Edit(
                    title = "LON_BAIDU",
                    type = EditType.NUMBER, show = false,
                    numberType = @NumberType
            )
    )
    private Double LON_BAIDU;
 
    @EruptField(
            views = @View(
                    title = "LAT_BAIDU", sortable = true, show = false
            ),
            edit = @Edit(
                    title = "LAT_BAIDU",
                    type = EditType.NUMBER, show = false,
                    numberType = @NumberType
            )
    )
    private Double LAT_BAIDU;
 
    @EruptField(
            views = @View(
                    title = "TEMPERATURE", sortable = true, show = false
            ),
            edit = @Edit(
                    title = "TEMPERATURE",
                    type = EditType.NUMBER, show = false,
                    numberType = @NumberType
            )
    )
    private Double TEMPERATURE;
 
    @EruptField(
            views = @View(
                    title = "HUMIDITY", sortable = true, show = false
            ),
            edit = @Edit(
                    title = "HUMIDITY",
                    type = EditType.NUMBER, show = false,
                    numberType = @NumberType
            )
    )
    private Double HUMIDITY;
 
    @EruptField(
            views = @View(
                    title = "VOLTAGE", sortable = true, show = false
            ),
            edit = @Edit(
                    title = "VOLTAGE",
                    type = EditType.NUMBER, show = false,
                    numberType = @NumberType
            )
    )
    private Double VOLTAGE;
 
 
    public Date getPosttime() {
        return posttime;
    }
 
    public void setPosttime(Date posttime) {
        this.posttime = posttime;
    }
 
    public String getMN() {
        return MN;
    }
 
    public void setMN(String MN) {
        this.MN = MN;
    }
 
    public Integer getPM25() {
        return PM25;
    }
 
    public void setPM25(Integer PM25) {
        this.PM25 = PM25;
    }
 
    public String getDustflag() {
        return dustflag;
    }
 
    public void setDustflag(String dustflag) {
        this.dustflag = "null".equals(dustflag) ? null : dustflag;
    }
 
    public Integer getPM10() {
        return PM10;
    }
 
    public void setPM10(Integer PM10) {
        this.PM10 = PM10;
    }
 
    public Integer getNO2() {
        return NO2;
    }
 
    public void setNO2(Integer NO2) {
        this.NO2 = NO2;
    }
 
    public String getNo2flag() {
        return no2flag;
    }
 
    public void setNo2flag(String no2flag) {
        this.no2flag = "null".equals(no2flag) ? null : no2flag;
    }
 
    public Integer getO3() {
        return O3;
    }
 
    public void setO3(Integer o3) {
        O3 = o3;
    }
 
    public Integer getNO() {
        return NO;
    }
 
    public void setNO(Integer NO) {
        this.NO = NO;
    }
 
    public String getNoflag() {
        return noflag;
    }
 
    public void setNoflag(String noflag) {
        this.noflag = "null".equals(noflag) ? null : noflag;
    }
 
    public Integer getCO() {
        return CO;
    }
 
    public void setCO(Integer CO) {
        this.CO = CO;
    }
 
    public String getCoflag() {
        return coflag;
    }
 
    public void setCoflag(String coflag) {
        this.coflag = "null".equals(coflag) ? null : coflag;
    }
 
    public Integer getTSP() {
        return TSP;
    }
 
    public void setTSP(Integer TSP) {
        this.TSP = TSP;
    }
 
    public String getFlag() {
        return Flag;
    }
 
    public void setFlag(String flag) {
        Flag = flag;
    }
 
    public Integer getTVOC() {
        return TVOC;
    }
 
    public void setTVOC(Integer TVOC) {
        this.TVOC = TVOC;
    }
 
    public Integer getNO2_ACT() {
        return NO2_ACT;
    }
 
    public void setNO2_ACT(Integer NO2_ACT) {
        this.NO2_ACT = NO2_ACT;
    }
 
    public Integer getNO2_REF() {
        return NO2_REF;
    }
 
    public void setNO2_REF(Integer NO2_REF) {
        this.NO2_REF = NO2_REF;
    }
 
    public Integer getNO_ACT() {
        return NO_ACT;
    }
 
    public void setNO_ACT(Integer NO_ACT) {
        this.NO_ACT = NO_ACT;
    }
 
    public Integer getNO_REF() {
        return NO_REF;
    }
 
    public void setNO_REF(Integer NO_REF) {
        this.NO_REF = NO_REF;
    }
 
    public Integer getCO_ACT() {
        return CO_ACT;
    }
 
    public void setCO_ACT(Integer CO_ACT) {
        this.CO_ACT = CO_ACT;
    }
 
    public Integer getCO_REF() {
        return CO_REF;
    }
 
    public void setCO_REF(Integer CO_REF) {
        this.CO_REF = CO_REF;
    }
 
    public String getGid_100() {
        return gid_100;
    }
 
    public void setGid_100(String gid_100) {
        this.gid_100 = gid_100;
    }
 
    public Double getLON() {
        return LON;
    }
 
    public void setLON(Double LON) {
        this.LON = LON;
    }
 
    public Double getLAT() {
        return LAT;
    }
 
    public void setLAT(Double LAT) {
        this.LAT = LAT;
    }
 
    public Integer getSPEED() {
        return SPEED;
    }
 
    public void setSPEED(Integer SPEED) {
        this.SPEED = SPEED;
    }
 
    public Double getLON_BAIDU() {
        return LON_BAIDU;
    }
 
    public void setLON_BAIDU(Double LON_BAIDU) {
        this.LON_BAIDU = LON_BAIDU;
    }
 
    public Double getLAT_BAIDU() {
        return LAT_BAIDU;
    }
 
    public void setLAT_BAIDU(Double LAT_BAIDU) {
        this.LAT_BAIDU = LAT_BAIDU;
    }
 
    public Double getTEMPERATURE() {
        return TEMPERATURE;
    }
 
    public void setTEMPERATURE(Double TEMPERATURE) {
        this.TEMPERATURE = TEMPERATURE;
    }
 
    public Double getHUMIDITY() {
        return HUMIDITY;
    }
 
    public void setHUMIDITY(Double HUMIDITY) {
        this.HUMIDITY = HUMIDITY;
    }
 
    public Double getVOLTAGE() {
        return VOLTAGE;
    }
 
    public void setVOLTAGE(Double VOLTAGE) {
        this.VOLTAGE = VOLTAGE;
    }
 
    public Integer getNOX() {
        return NOX;
    }
 
    public void setNOX(Integer NOX) {
        this.NOX = NOX;
    }
 
}