|
|
@ -457,10 +457,13 @@ public class ProcessDao { |
|
|
|
if(tenantId >= 0){ |
|
|
|
if(tenantId >= 0){ |
|
|
|
tenant = tenantMapper.queryById(tenantId); |
|
|
|
tenant = tenantMapper.queryById(tenantId); |
|
|
|
} |
|
|
|
} |
|
|
|
if(tenant == null){ |
|
|
|
if(null == tenant){ |
|
|
|
User user = userMapper.selectById(userId); |
|
|
|
User user = userMapper.selectById(userId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (null != user) { |
|
|
|
tenant = tenantMapper.queryById(user.getTenantId()); |
|
|
|
tenant = tenantMapper.queryById(user.getTenantId()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return tenant; |
|
|
|
return tenant; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|