puplic api return total count in response
This commit is contained in:
parent
7af27c73cf
commit
87c9730524
|
@ -57,8 +57,6 @@ public class DataManagementPlanPublicManager {
|
|||
dataTable.setTotalCount(count);
|
||||
});
|
||||
CompletableFuture.allOf(itemsFuture, countFuture).join();
|
||||
if(dataTable.getTotalCount() > dmpTableRequest.getLength())
|
||||
dataTable.setTotalCount((long)dmpTableRequest.getLength());
|
||||
|
||||
return dataTable;
|
||||
}
|
||||
|
|
|
@ -113,11 +113,7 @@ public class DatasetPublicManager {
|
|||
select(this::mapPublicModel);
|
||||
|
||||
dataTable.setData(datasetLists.stream().filter(Objects::nonNull).collect(Collectors.toList()));
|
||||
if(count <= datasetTableRequest.getLength())
|
||||
dataTable.setTotalCount(count);
|
||||
else
|
||||
dataTable.setTotalCount((long)datasetTableRequest.getLength());
|
||||
//CompletableFuture.allOf(countFuture).join();
|
||||
dataTable.setTotalCount(count);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue