From a8e3deca8bc87a2d52a97d8fec55f4e002fb0ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=B6=E5=90=8D?= <13774486042@163.com> Date: Mon, 6 Mar 2023 10:40:17 +0800 Subject: [PATCH] [Improvement][api] Remove unless code in ResourcesServiceImpl (#13676) * remove unless code in ResourcesServiceImpl --------- Co-authored-by: chenjiaming --- .../dolphinscheduler/api/service/impl/ResourcesServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java index 05c78e0849..ea36e935b1 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java @@ -886,7 +886,7 @@ public class ResourcesServiceImpl extends BaseServiceImpl implements ResourcesSe List userList = userMapper.selectList(null); Set visitedTenantEntityCode = new HashSet<>(); for (User userEntity : userList) { - Tenant tt = tenantMapper.queryById(userEntity.getTenantId()); + String tenantEntityCode = tenantMapper.queryById(userEntity.getTenantId()).getTenantCode(); if (!visitedTenantEntityCode.contains(tenantEntityCode)) { defaultPath = storageOperate.getResDir(tenantEntityCode);