zxl
4 小时以前 3b0516a2959e25576e4f3fda697a3b025d06c8c9
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
package com.ycl.platform.domain.result;
 
import annotation.Excel;
import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.index.TextIndexed;
 
import java.time.LocalDate;
import java.util.Date;
 
 
@Data
public class BaseResult {
    @Id
    private ObjectId mongoId;
    /**
     * 数据日期
     */
    @CreatedDate
    @Indexed(background = true)
    private LocalDate mongoCreateTime;
    /**
     * 国标码
     */
    @Indexed(background = true)
    private String no;
    /**
     * 省厅
     */
    @Indexed(background = true)
    private Boolean provinceTag;
    //接收mysql数据用
    private Boolean provinceTagVideo;
    private Boolean provinceTagCar;
    private Boolean provinceTagFace;
 
    /**
     * 部级
     */
    @Indexed(background = true)
    private Boolean deptTag;
 
    /**
     * 重点
     */
    @Indexed(background = true)
    private Boolean importantTag;
 
    /**
     * 重点指挥图像
     */
    @Indexed(background = true)
    private Boolean importantCommandImageTag;
 
    /**
     * 新设备, true代表新设备,false和null不是新设备
     */
    @Indexed(background = true)
    private Boolean newDevice;
}