Commit dd0981d7 authored by guangjing.gao's avatar guangjing.gao

单用户/批量用户查询,租户ID为空默认羊小咩走原流程,否则走新流程

parent 1d98ae83
...@@ -49,6 +49,7 @@ public class UserCenterServiceImpl implements UserCenterService { ...@@ -49,6 +49,7 @@ public class UserCenterServiceImpl implements UserCenterService {
public List<UserAttached> searchUserAttachedListByUserId(List<Long> userIds, Integer tenantId) { public List<UserAttached> searchUserAttachedListByUserId(List<Long> userIds, Integer tenantId) {
List<UserAttached> userAttacheds = userAttachedRepository.findByUserIdIn(userIds); List<UserAttached> userAttacheds = userAttachedRepository.findByUserIdIn(userIds);
if (!tenantId.equals(TenantUtil.TENANT_DEFAULT)) {
if (userAttacheds != null) { if (userAttacheds != null) {
//租户ID校验 //租户ID校验
if (TenantUtil.validationTenantIdIsNullOrZero(tenantId)) { if (TenantUtil.validationTenantIdIsNullOrZero(tenantId)) {
...@@ -67,6 +68,7 @@ public class UserCenterServiceImpl implements UserCenterService { ...@@ -67,6 +68,7 @@ public class UserCenterServiceImpl implements UserCenterService {
return resultProductUsers; return resultProductUsers;
} }
} }
}
return userAttacheds; return userAttacheds;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment