|
@@ -145,6 +145,7 @@ public class OrderManagementService {
|
|
|
NativeSearchQuery query = new NativeSearchQueryBuilder()
|
|
|
.withPageable(pageable)
|
|
|
.withQuery(boolQuery)
|
|
|
+ .withTrackTotalHits(true)
|
|
|
.build();
|
|
|
//查询数据
|
|
|
try {
|
|
@@ -279,6 +280,7 @@ public class OrderManagementService {
|
|
|
|
|
|
NativeSearchQuery query = new NativeSearchQueryBuilder()
|
|
|
.withPageable(pageable)
|
|
|
+ .withTrackTotalHits(true)
|
|
|
.withQuery(boolQuery)
|
|
|
.addAggregation(sumBuilder)
|
|
|
.build();
|
|
@@ -394,6 +396,7 @@ public class OrderManagementService {
|
|
|
NativeSearchQuery query = new NativeSearchQueryBuilder()
|
|
|
.withPageable(pageable)
|
|
|
.withQuery(boolQuery)
|
|
|
+ .withTrackTotalHits(true)
|
|
|
.build();
|
|
|
//查询数据
|
|
|
try {
|
|
@@ -513,6 +516,7 @@ public class OrderManagementService {
|
|
|
NativeSearchQuery query = new NativeSearchQueryBuilder()
|
|
|
.withSort(timeSort)
|
|
|
.withQuery(boolQuery)
|
|
|
+ .withTrackTotalHits(true)
|
|
|
.build();
|
|
|
//查询数据
|
|
|
try {
|
|
@@ -605,6 +609,7 @@ public class OrderManagementService {
|
|
|
NativeSearchQuery query = new NativeSearchQueryBuilder()
|
|
|
.withSort(timeSort)
|
|
|
.withQuery(boolQuery)
|
|
|
+ .withTrackTotalHits(true)
|
|
|
.build();
|
|
|
//查询数据
|
|
|
try {
|