|
|
@@ -336,6 +336,9 @@ public class TenantServiceImpl implements TenantService { |
|
|
|
query.checkParam(); |
|
|
|
//开启分页 |
|
|
|
List<TenantVo> tenantVos = tenantMapper.findList(query); |
|
|
|
if (CollectionUtil.isEmpty(tenantVos)) { |
|
|
|
return JsonResult.success(new Page<>(query.getPage(), query.getLimit())); |
|
|
|
} |
|
|
|
List<Platform> platforms = platformMapper.selectList(Wrappers.<Platform>lambdaQuery().eq(Platform::getMark, MarkTypeEnum.VALID.getCode())); |
|
|
|
//公共数据预热 ,避免循环中复杂查询导致接口响应时间过长 |
|
|
|
Map<Long, TenantItem> tenantItemMap = getTenantItemMap(tenantVos); |