From bcd0a5be94d339d937413e5f829823b22715aa0d Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Tue, 10 Mar 2026 09:27:21 +0800
Subject: [PATCH] 2026-03-09 优化 查询全部目录(含下属标注数据) 1. 默认文件夹固定置顶,其余目录按createTime降序排序 2. 目录下的标注按createTime降序排序
---
ard-sample/src/main/java/com/ard/sample/annotation/service/impl/AnnotationServiceImpl.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 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 5c1151f..acafbf7 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
@@ -35,8 +35,8 @@
* 新增:修改标注显示状态
*/
@Override
- public boolean updateAnnotationVisible(String id, Integer isTrue) {
- if (id == null || id.isEmpty() || isTrue == null || (isTrue != 0 && isTrue != 1)) {
+ public boolean updateAnnotationVisible(String id, Boolean isTrue) {
+ if (id == null || id.isEmpty() || isTrue == null) {
log.error("修改标注显示状态失败:参数非法,id={}, isTrue={}", id, isTrue);
return false;
}
@@ -47,7 +47,7 @@
}
@Override
- public boolean deleteAnnotation(Integer id) {
+ public boolean deleteAnnotation(String id) {
if (id == null) {
log.error("删除标记失败:ID为空");
return false;
@@ -58,7 +58,7 @@
}
@Override
- public boolean batchDeleteAnnotation(List<Integer> ids) {
+ public boolean batchDeleteAnnotation(List<String> ids) {
if (CollectionUtils.isEmpty(ids)) {
log.error("批量删除标记失败:ID列表为空");
return false;
@@ -69,7 +69,7 @@
}
@Override
- public List<AnnotationEntity> listByDirectoryId(Integer directoryId) {
+ public List<AnnotationEntity> listByDirectoryId(String directoryId) {
if (directoryId == null) {
log.error("按目录查询标记失败:目录ID为空");
return List.of();
--
Gitblit v1.9.3