From 0a0174e3b784f7f9f7c3abfb419c23ee26709d0f Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Wed, 01 Apr 2026 14:29:42 +0800
Subject: [PATCH] 2026-04-01 优化机场列表,注释获取机场视频地址代码。
---
ard-sample/src/main/java/com/ard/sample/annotation/model/entity/AnnotationEntity.java | 51 ++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 48 insertions(+), 3 deletions(-)
diff --git a/ard-sample/src/main/java/com/ard/sample/annotation/model/entity/AnnotationEntity.java b/ard-sample/src/main/java/com/ard/sample/annotation/model/entity/AnnotationEntity.java
index 3752036..7ddf8d3 100644
--- a/ard-sample/src/main/java/com/ard/sample/annotation/model/entity/AnnotationEntity.java
+++ b/ard-sample/src/main/java/com/ard/sample/annotation/model/entity/AnnotationEntity.java
@@ -14,36 +14,81 @@
@AllArgsConstructor
@TableName(value = "annotation")
public class AnnotationEntity implements Serializable {
- @TableId(type = IdType.AUTO)
- private Integer id;
+ /**
+ * 主键UUID
+ */
+ @TableId(type = IdType.ASSIGN_UUID) // 自动生成UUID
+ private String id;
+ /**
+ * 关联目录ID(UUID)
+ */
@TableField(value = "directory_id")
- private Integer directoryId;
+ private String directoryId;
+ /**
+ * 标注名称
+ */
@TableField(value = "name")
private String name;
+ /**
+ * 标注颜色
+ */
@TableField(value = "color")
private String color;
+ /**
+ * 标注类型(point/line/polygon/circle),1-点 2-线 3-面 4-圆
+ */
@TableField(value = "annotation_type")
private String annotationType;
+ /**
+ * 坐标信息
+ */
@TableField(value = "coordinate_info")
private byte[] coordinateInfo;
+ /**
+ * 关联图片URL
+ */
@TableField(value = "image_url")
private String imageUrl;
+ /**
+ * 绘制人
+ */
@TableField(value = "drawer")
private String drawer;
+ /**
+ * 是否可见:true(1)=可见,false(0)=不可见(默认true)
+ */
+ @TableField(value = "is_true")
+ private Boolean isTrue = true; // 显式设置默认值,避免空值
+
+ /**
+ * 是否透明:true(1)=透明,false(0)=不透明
+ */
+ @TableField(value = "is_transparent")
+ private Boolean isTransparent;
+
+ /**
+ * 标注简介
+ */
@TableField(value = "description")
private String description;
+ /**
+ * 创建时间
+ */
@TableField(value = "create_time", fill = FieldFill.INSERT)
private Long createTime;
+ /**
+ * 更新时间
+ */
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private Long updateTime;
--
Gitblit v1.9.3