diff --git a/modules/core/src/main/java/com/bytedesk/core/category/CategoryRestService.java b/modules/core/src/main/java/com/bytedesk/core/category/CategoryRestService.java index e2f5fd06f5..c40a026d7e 100644 --- a/modules/core/src/main/java/com/bytedesk/core/category/CategoryRestService.java +++ b/modules/core/src/main/java/com/bytedesk/core/category/CategoryRestService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-05-11 18:22:04 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2025-03-08 22:32:33 + * @LastEditTime: 2025-03-11 09:27:26 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -132,9 +132,8 @@ public class CategoryRestService extends BaseRestService, JpaSpecif Optional findByUid(String uid); + Boolean existsByUid(String uid); + // Boolean existsByPlatform(String platform); } diff --git a/modules/core/src/main/java/com/bytedesk/core/tag/TagRestService.java b/modules/core/src/main/java/com/bytedesk/core/tag/TagRestService.java index 7849a69d9d..55b0125bf9 100644 --- a/modules/core/src/main/java/com/bytedesk/core/tag/TagRestService.java +++ b/modules/core/src/main/java/com/bytedesk/core/tag/TagRestService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-05-11 18:25:45 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2025-03-11 08:59:58 + * @LastEditTime: 2025-03-11 09:26:17 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -22,6 +22,7 @@ import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.domain.Specification; import org.springframework.orm.ObjectOptimisticLockingFailureException; import org.springframework.stereotype.Service; +import org.springframework.util.StringUtils; import org.springframework.retry.annotation.Backoff; import org.springframework.retry.annotation.Recover; import org.springframework.retry.annotation.Retryable; @@ -72,15 +73,26 @@ public class TagRestService extends BaseRestService