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

* 抽查事件表 *

* * @author * @since 2023-08-15 */ @Data @Accessors(chain = true) @TableName("t_spotcheck_event") @Schema(name = "SpotcheckEvent", description = "抽查事件表") @S3DataParse public class SpotcheckEvent extends Model { private static final long serialVersionUID = 1L; @Schema(description = "主键") @TableId("id") private Long id; @Schema(description = "预留 (1合规 2异常)") @TableField("event_type") private Byte eventType; @Schema(description = "区域 1卸油区 2加油区 3便利店") @TableField("event_address") private Byte eventAddress; @Schema(description = "事件时间") @TableField("event_time") private Timestamp eventTime; @Schema(description = "算法类型") @TableField("algorithm_code") private String algorithmCode; @Schema(description = "算法类型名") @TableField("algorithm_name") private String algorithmName; @Schema(description = "视频设备code") @TableField("camera_code") private String cameraCode; @Schema(description = "视频设备名称") @TableField("camera_name") private String cameraName; @Schema(description = "设备id") @TableField("device_id") private Long deviceId; @Schema(description = "网关设备名称") @TableField("device_name") private String deviceName; @Schema(description = "机构代码") @TableField(value = "org_code", condition = SqlCondition.LIKE_RIGHT) private String orgCode; @Schema(description = "机构名称") @TableField("org_name") private String orgName; @Schema(description = "告警图片唯一标识") @TableField("img_uid") private String imgUid; @Schema(description = "关联图片") @TableField("img_path") @S3DataParse private String imgPath; @Schema(description = "关联视频") @TableField("video_path") @S3DataParse private String videoPath; @Schema(description = "审核用户id") @TableField("audit_user") private String auditUser; @Schema(description = "审核结果1属实,2误报, 0未处理") @TableField("audit_result") private Byte auditResult; @Schema(description = "审核意见") @TableField("audit_comment") private String auditComment; @Schema(description = "审核时间") @TableField("audit_time") private Timestamp auditTime; @Schema(description = "创建时间") @TableField("create_time") private Timestamp createTime; @Schema(description = "告警日期") @TableField("event_day") private String eventDay; @Override public Serializable pkVal() { return this.id; } }