Browse Source

[Improvement][api] Remove unless code in ResourcesServiceImpl (#13676)

* remove unless code in ResourcesServiceImpl

---------

Co-authored-by: chenjiaming <chenjiaming@kezaihui.com>
3.2.0-release
陈家名 2 years ago committed by GitHub
parent
commit
a8e3deca8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java

2
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<User> userList = userMapper.selectList(null);
Set<String> 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);

Loading…
Cancel
Save