REQ-2907: 查询单位时指定pageSize

This commit is contained in:
yanglin 2024-08-28 09:37:34 +08:00
parent b836832b07
commit 3687e265ba

View File

@ -333,7 +333,10 @@ public class MessageHistoryServiceImpl extends ServiceImpl<MessageHistoryMapper,
return Collections.emptyMap();
}
return organizationalUnitApi.page(OrganizationalUnitQuery.builder().unitIds(ouIds).build())
OrganizationalUnitQuery query = new OrganizationalUnitQuery();
query.setUnitIds(ouIds);
query.setPageSize(param.getPageSize() + 1L);
return organizationalUnitApi.page(query)
.getData()
.getList()
.stream()