feat(REQ-3282): 调整单位请求代码

This commit is contained in:
zhanghonghao 2024-12-31 18:30:09 +08:00
parent 8b316785dc
commit 5da5901848

View File

@ -36,7 +36,7 @@ public class UnitGateway {
return Collections.emptyList(); return Collections.emptyList();
PageResp<OrgUnitResp> page = BizAssertions.assertResponse(orgUnitApi.page(OrgUnitPageQueryReq.builder() PageResp<OrgUnitResp> page = BizAssertions.assertResponse(orgUnitApi.page(OrgUnitPageQueryReq.builder()
.pageSize(Integer.MAX_VALUE) .pageSize(Integer.MAX_VALUE)
.unitIds(Sets.newHashSet(ouIds)) .ids(Sets.newHashSet(ouIds))
.build())); .build()));
return page.getData() == null ? Collections.emptyList() : page.getData(); return page.getData() == null ? Collections.emptyList() : page.getData();
} }