From bf12237f0cedf8c2a9f0fe298f457772790c7d86 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 28 三月 2023 18:38:54 +0800 Subject: [PATCH] 提交code服务代码 --- Source/BladeX/blade-service/blade-system/src/main/java/org/springblade/system/service/IStrategyService.java | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Source/BladeX/blade-service/blade-system/src/main/java/org/springblade/system/service/IStrategyService.java b/Source/BladeX/blade-service/blade-system/src/main/java/org/springblade/system/service/IStrategyService.java index 00e002d..bc3e471 100644 --- a/Source/BladeX/blade-service/blade-system/src/main/java/org/springblade/system/service/IStrategyService.java +++ b/Source/BladeX/blade-service/blade-system/src/main/java/org/springblade/system/service/IStrategyService.java @@ -24,6 +24,13 @@ Strategy queryById(String id); /** + * 鏌ヨ榛樿瀵嗙爜绛栫暐 + * + * @return 瀹炰緥瀵硅薄 + */ + Strategy queryByIsDefault(); + + /** * 鍒嗛〉鏌ヨ * * @param query 鍒嗛〉瀵硅薄 @@ -48,9 +55,18 @@ boolean deleteByIds(List<String> ids); /** - * 鏌ヨ榛樿瀵嗙爜绛栫暐 + * 閫氳繃绉熸埛id浠ュ強鐢ㄦ埛鍚嶆煡璇㈠瘑鐮佺瓥鐣� + * @param tenantId + * @param name * @return */ - Long queryByIsDefault(); + Strategy queryByNameAndTenantId(String tenantId, String name); + + /** + * 鏍规嵁鐢ㄦ埛id鏌ヨ瀵嗙爜绛栫暐 + * @param userId + * @return + */ + Strategy queryByUserId(Long userId); } -- Gitblit v1.9.3