peng
2026-03-24 73d124ce71e60685b19cc74a44e21dc080f7bfb6
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
package com.tievd.jyz.entity;
 
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.tievd.cube.commons.annotations.Dict;
import com.tievd.cube.commons.easyexcel.annotations.Excel;
import com.tievd.jyz.constants.SystemConstant;
import com.tievd.jyz.plugin.ExcelHyperLink;
import com.tievd.jyz.plugin.S3DataParse;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
 
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
 
/**
 * <p>
 * 加油事件表
 * </p>
 *
 * @author
 * @since 2023-02-24
 */
@Data
@Accessors(chain = true)
@TableName("t_oil_event")
@Schema(name = "OilEvent", description = "加油事件表")
@S3DataParse
public class OilEvent extends Model<OilEvent> {
 
    private static final long serialVersionUID = 1L;
 
    @Schema(description = "主键")
    @TableId("id")
    private Long id;
    
    @Schema(description = "车牌号", readOnly = true)
    @TableField("license_num")
    private String licenseNum;
 
    @Schema(description = "预留  (1合规 2异常)", readOnly = true)
    @TableField("event_type")
    private Byte eventType;
 
    @Schema(description = "区域 1卸油区 2加油区 3便利店", readOnly = true)
    @TableField("event_address")
    @Excel("所属区域")
    @Dict(SystemConstant.DICT_INSTALL_ADDRESS)
    private Byte eventAddress;
 
    @Schema(description = "事件时间", readOnly = true)
    @TableField("event_time")
    @Excel("事件时间")
    private Timestamp eventTime;
 
    @Schema(description = "算法类型", readOnly = true)
    @TableField("algorithm_code")
    private String algorithmCode;
    
    @Schema(description = "算法名称", readOnly = true)
    @TableField("algorithm_name")
    @Excel("事件类型")
    private String algorithmName;
 
    @Schema(description = "视频设备code", readOnly = true)
    @TableField("camera_code")
    private String cameraCode;
 
    @Schema(description = "视频终端名称", readOnly = true)
    @TableField("camera_name")
    @Excel("终端名称")
    private String cameraName;
 
    @Schema(description = "设备id", readOnly = true)
    @TableField("device_id")
    private Long deviceId;
    
    @Schema(description = "网关设备名称", readOnly = true)
    @TableField("device_name")
    private String deviceName;
 
    @Schema(description = "机构代码", readOnly = true)
    @TableField(value = "org_code", condition = SqlCondition.LIKE_RIGHT)
    private String orgCode;
 
    @Schema(description = "机构名称", readOnly = true)
    @TableField("org_name")
    @Excel("所属机构")
    private String orgName;
 
    @Schema(description = "审核用户id", readOnly = true)
    @TableField("audit_user")
    @Excel("处理人")
    private String auditUser;
 
    @Schema(description = "审核结果1属实,2误报, 0未处理")
    @TableField("audit_result")
    @Excel("处理结果")
    @Dict(SystemConstant.DICT_AUDIT_RESULT)
    private Byte auditResult;
 
    @Schema(description = "审核意见")
    @TableField("audit_comment")
    private String auditComment;
 
    @Schema(description = "审核时间", readOnly = true)
    @TableField("audit_time")
    @Excel("处理时间")
    private Date auditTime;
 
    @Schema(description = "创建时间", readOnly = true)
    @TableField("create_time")
    private Date createTime;
    
    @Schema(description = "日期", readOnly = true)
    @TableField("event_day")
    private String eventDay;
    
    @Schema(description = "告警图片唯一标识", readOnly = true)
    @TableField("img_uid")
    private String imgUid;
    
    @Schema(description = "关联图片", readOnly = true)
    @TableField("img_path")
    @Excel("图片")
    @ExcelHyperLink
    @S3DataParse
    private String imgPath;
    
    @Schema(description = "关联视频", readOnly = true)
    @TableField("video_path")
    @Excel("视频")
    @ExcelHyperLink
    @S3DataParse
    private String videoPath;
 
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}