Showing
1 changed file
with
6 additions
and
15 deletions
@@ -365,10 +365,10 @@ public class SearchServiceHelper { | @@ -365,10 +365,10 @@ public class SearchServiceHelper { | ||
365 | boolFilter.must(FilterBuilders.termsFilter("productSkn", sknString.split(","))); | 365 | boolFilter.must(FilterBuilders.termsFilter("productSkn", sknString.split(","))); |
366 | } | 366 | } |
367 | 367 | ||
368 | - // 如果contain_global!=Y,则过滤掉全球购的商品[全球购商品融合需求] | ||
369 | - if (!paramMap.containsKey("contain_global") || !"Y".equals(paramMap.get("contain_global"))) { | ||
370 | - boolFilter.must(FilterBuilders.termsFilter("isGlobal", "N")); | ||
371 | - } | 368 | +// // 如果contain_global!=Y,则过滤掉全球购的商品[全球购商品融合需求] |
369 | +// if (!paramMap.containsKey("contain_global") || !"Y".equals(paramMap.get("contain_global"))) { | ||
370 | +// boolFilter.must(FilterBuilders.termsFilter("isGlobal", "N")); | ||
371 | +// } | ||
372 | 372 | ||
373 | // 通用的过滤请求 | 373 | // 通用的过滤请求 |
374 | for (String key : paramMap.keySet()) { | 374 | for (String key : paramMap.keySet()) { |
@@ -453,17 +453,8 @@ public class SearchServiceHelper { | @@ -453,17 +453,8 @@ public class SearchServiceHelper { | ||
453 | productMap.put("yohood_id", map.get("yohoodId")); | 453 | productMap.put("yohood_id", map.get("yohoodId")); |
454 | productMap.put("sales_phrase", map.get("salesPhrase")); | 454 | productMap.put("sales_phrase", map.get("salesPhrase")); |
455 | 455 | ||
456 | - //测试用 | ||
457 | - String isGlobal = "N"; | ||
458 | - try { | ||
459 | - Integer productSkn = (Integer) map.get("productSkn"); | ||
460 | - if(productSkn!=null && productSkn%2==0){ | ||
461 | - isGlobal = "Y"; | ||
462 | - } | ||
463 | - } catch (Exception e) { | ||
464 | - // TODO: handle exception | ||
465 | - } | ||
466 | - productMap.put("is_global",isGlobal); | 456 | + // 是否是全球购商品 |
457 | + productMap.put("is_global", map.get("isGlobal") == null ? "N" : map.get("isGlobal")); | ||
467 | 458 | ||
468 | return productMap; | 459 | return productMap; |
469 | } | 460 | } |
-
Please register or login to post a comment