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/service/impl/AnnotationServiceImpl.java | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/ard-sample/src/main/java/com/ard/sample/annotation/service/impl/AnnotationServiceImpl.java b/ard-sample/src/main/java/com/ard/sample/annotation/service/impl/AnnotationServiceImpl.java
index bf09f45..5c1151f 100644
--- a/ard-sample/src/main/java/com/ard/sample/annotation/service/impl/AnnotationServiceImpl.java
+++ b/ard-sample/src/main/java/com/ard/sample/annotation/service/impl/AnnotationServiceImpl.java
@@ -31,6 +31,21 @@
return updateById(entity);
}
+ /**
+ * 新增:修改标注显示状态
+ */
+ @Override
+ public boolean updateAnnotationVisible(String id, Integer isTrue) {
+ if (id == null || id.isEmpty() || isTrue == null || (isTrue != 0 && isTrue != 1)) {
+ log.error("修改标注显示状态失败:参数非法,id={}, isTrue={}", id, isTrue);
+ return false;
+ }
+ AnnotationEntity entity = new AnnotationEntity();
+ entity.setId(id);
+ entity.setIsTrue(isTrue);
+ return updateById(entity);
+ }
+
@Override
public boolean deleteAnnotation(Integer id) {
if (id == null) {
--
Gitblit v1.9.3