Pārlūkot izejas kodu

对查询租户时进行校验(筛选出有效数据)

tags/v2.4.0
xiaoying pirms 1 gada
vecāks
revīzija
18a4926c12
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. +5
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/ClientUserServiceImpl.java

+ 5
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/ClientUserServiceImpl.java Parādīt failu

@@ -261,6 +261,8 @@ public class ClientUserServiceImpl implements ClientUserSevice {
IPage<TenantPo> pageData = tenantMapper.findList(page, query);
pageData.convert(x -> {
TenantVo vo = Convert.convert(TenantVo.class, x);
if (ObjectUtil.isNotEmpty(vo.getCode())) {
}
Long userId = x.getUserId();
List<AuthoritiesPo> poList = authoritiesMapper.selectByUserId(userId);
UserPo userPo = clientUserMapper.selectByUserId(userId);
@@ -281,6 +283,9 @@ public class ClientUserServiceImpl implements ClientUserSevice {
vo.setList(businessSystemVoList);
return vo;
});
//过滤出测试租户数据
List<TenantPo> collect = pageData.getRecords().stream().filter(t -> ObjectUtil.isNotEmpty(t.getCode())).collect(Collectors.toList());
pageData.setRecords(collect);
return JsonResult.success(pageData);
}


Notiek ielāde…
Atcelt
Saglabāt