owl-cli 5.36.0 → 5.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,7 +15,7 @@ var spec = @spec;
|
|
|
15
15
|
|
|
16
16
|
function buildSort(sort){
|
|
17
17
|
if(!sort){
|
|
18
|
-
return
|
|
18
|
+
return {};
|
|
19
19
|
}
|
|
20
20
|
var result = [];
|
|
21
21
|
for(var k in sort){
|
|
@@ -208,13 +208,16 @@ function buildSort(sort){
|
|
|
208
208
|
|
|
209
209
|
var objs = hits.map(function(hit){return hit._source});
|
|
210
210
|
|
|
211
|
-
|
|
211
|
+
delete query.from;
|
|
212
|
+
delete query.size;
|
|
213
|
+
delete query.sort;
|
|
214
|
+
sndTxt = JSON.stringify(query);
|
|
212
215
|
var countUrl = elasticSearchUrl+"/@projectCode/_count";
|
|
213
216
|
|
|
214
217
|
var ss = HttpUtils.postRaw( countUrl, sndTxt, headers);
|
|
215
218
|
var cr = JSON.parse(ss);
|
|
216
219
|
|
|
217
|
-
var count =
|
|
220
|
+
var count = cr.count;
|
|
218
221
|
//这里重新从pigeon取了一次数据,做了删除的判断
|
|
219
222
|
// var ids = hits.map(function(hit){return hit._source.id});
|
|
220
223
|
// var list = owl_wh_receiptService.getObjects(ids);
|