From 8a523b85c050dd98444150541466ab6f6ebc4f97 Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Mon, 09 Mar 2026 11:19:35 +0800
Subject: [PATCH] 2026-03-09 标记功能接口调整: 1、ID改为UUID; 2、点、线、面、圆数据增加索引字段sort,以标注各点的顺序; 3、增加is_true字段,用于标记是否在地图上可见;
---
ard-sample/src/main/java/com/ard/sample/annotation/model/entity/AnnotationEntity.java | 45 ++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 42 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..36a1fe2 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,75 @@
@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;
+ /**
+ * 是否可见:0=可见,1=不可见(默认0)
+ */
+ @TableField(value = "is_true")
+ private Integer isTrue = 0; // 显式设置默认值,避免空值
+
+ /**
+ * 标注简介
+ */
@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