Browse Source

Merge branch 'develop' of gitadmin/tuoheng_oidc into release

tags/v2.5.0
xuziqing 1 year ago
parent
commit
d070c688f8
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/TenantServiceImpl.java

+ 3
- 3
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/TenantServiceImpl.java View File

@@ -36,6 +36,7 @@ import com.tuoheng.model.vo.UserVo;
import com.tuoheng.service.TenantService;
import com.tuoheng.until.JsonResult;
import com.tuoheng.until.MapUtils;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
@@ -328,7 +329,7 @@ public class TenantServiceImpl implements TenantService {
//开启分页
IPage<TenantVo> page = new Page<>(query.getPage(), query.getLimit());
IPage<TenantVo> pageData = tenantMapper.findList(page, query);
List<TenantVo> collect = pageData.getRecords().stream().map(x -> {
pageData.convert(x -> {
TenantVo vo = new TenantVo();
BeanUtils.copyProperties(x, vo);
//并不是真正意义上的租户id
@@ -378,8 +379,7 @@ public class TenantServiceImpl implements TenantService {
businessSystemVoList = businessSystemVoList.stream().distinct().collect(Collectors.toList());
vo.setList(businessSystemVoList);
return vo;
}).filter(x -> x != null).collect(Collectors.toList());
pageData.setRecords(collect);
});
return JsonResult.success(pageData);
}


Loading…
Cancel
Save