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; /** *

* 卸油事件表 *

* * @author * @since 2023-02-24 */ @Data @Accessors(chain = true) @S3DataParse @TableName("t_oilout_event") @Schema(name = "OiloutEvent", description = "卸油事件表") public class OiloutEvent extends Model { private static final long serialVersionUID = 1L; @Schema(description = "主键") @TableId("id") private Long id; @Schema(description = "所属卸油记录id", readOnly = true) @TableField("record_id") private Long recordId; @Schema(description = "类型 1合规操作 2异常告警", readOnly = true) @TableField("event_type") private Byte eventType; @Schema(description = "阶段 1卸前 2卸中 3卸后", readOnly = true) @TableField("event_phrase") @Excel("所属阶段") @Dict(SystemConstant.DICT_EVENT_PHRASE) private Byte eventPhrase; @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; } }