Authored by 胡古飞

fix bug

@@ -525,7 +525,7 @@ public class SearchServiceHelper { @@ -525,7 +525,7 @@ public class SearchServiceHelper {
525 // 延期显示[( 库存>=begin) ||(storageNum<begin & storageUpdateTime>now)] 525 // 延期显示[( 库存>=begin) ||(storageNum<begin & storageUpdateTime>now)]
526 BoolQueryBuilder storageNumFilter = QueryBuilders.boolQuery(); 526 BoolQueryBuilder storageNumFilter = QueryBuilders.boolQuery();
527 storageNumFilter.should(QueryBuilders.rangeQuery(ProductIndexEsField.storageNum).gte(begin)); 527 storageNumFilter.should(QueryBuilders.rangeQuery(ProductIndexEsField.storageNum).gte(begin));
528 - storageNumFilter.should(QueryBuilders.boolQuery().must(QueryBuilders.rangeQuery(ProductIndexEsField.storageNum).to(begin)) 528 + storageNumFilter.should(QueryBuilders.boolQuery().must(QueryBuilders.rangeQuery(ProductIndexEsField.storageNum).lt(begin))
529 .must(QueryBuilders.rangeQuery(ProductIndexEsField.storageUpdateTime).gte(DateUtil.getTimeSecondByDate(new Date())))); 529 .must(QueryBuilders.rangeQuery(ProductIndexEsField.storageUpdateTime).gte(DateUtil.getTimeSecondByDate(new Date()))));
530 return storageNumFilter; 530 return storageNumFilter;
531 531