Authored by Zhao

promotionindex search add isdel filter

@@ -58,6 +58,7 @@ public class PromotionIndexBaseService { @@ -58,6 +58,7 @@ public class PromotionIndexBaseService {
58 BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery(); 58 BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();
59 boolQueryBuilder.must(QueryBuilders.termsQuery(ProductIndexEsField.id, ids)); 59 boolQueryBuilder.must(QueryBuilders.termsQuery(ProductIndexEsField.id, ids));
60 boolQueryBuilder.must(QueryBuilders.termQuery(ProductIndexEsField.status, 1)); 60 boolQueryBuilder.must(QueryBuilders.termQuery(ProductIndexEsField.status, 1));
  61 + boolQueryBuilder.mustNot(QueryBuilders.termQuery("isDel", "Y"));
61 62
62 searchParam.setFiter(boolQueryBuilder); 63 searchParam.setFiter(boolQueryBuilder);
63 searchParam.setSize(ids.size()); 64 searchParam.setSize(ids.size());