...
|
...
|
@@ -721,7 +721,7 @@ public class SearchServiceHelper { |
|
|
productMap.put("stock_number", map.getOrDefault(ProductIndexEsField.storageNum, 0));
|
|
|
productMap.put("storage_num", map.getOrDefault(ProductIndexEsField.storageNum, 0));
|
|
|
productMap.put("sales_num", map.getOrDefault(ProductIndexEsField.salesNum, 0));
|
|
|
|
|
|
|
|
|
productMap.put("gender", map.get(ProductIndexEsField.gender));
|
|
|
productMap.put("age_level", map.getOrDefault(ProductIndexEsField.ageLevel, ""));// 年龄层,逗号隔开的字符串
|
|
|
productMap.put("sales_phrase", map.getOrDefault(ProductIndexEsField.salesPhrase, ""));
|
...
|
...
|
@@ -739,20 +739,18 @@ public class SearchServiceHelper { |
|
|
productMap.put("is_discount", map.getOrDefault(ProductIndexEsField.isDiscount, "N"));
|
|
|
productMap.put("is_soon_sold_out", map.getOrDefault(ProductIndexEsField.isSoonSoldOut, "N"));
|
|
|
productMap.put("is_promotion", map.getOrDefault(ProductIndexEsField.ispromotion, 0));
|
|
|
|
|
|
|
|
|
productMap.put("bundle_type", map.getOrDefault(ProductIndexEsField.bundleType, 0));
|
|
|
|
|
|
// yohoodId
|
|
|
String yohoodId = (String) map.getOrDefault(ProductIndexEsField.yohoodId, "");
|
|
|
productMap.put("yohood_id", StringUtils.isNotBlank(yohoodId) ? yohoodId : null);
|
|
|
|
|
|
// 学生价和学生返币
|
|
|
productMap.put("is_student_rebate", map.getOrDefault(ProductIndexEsField.isstudentrebate, "N"));
|
|
|
String isStudentPrice = (String) map.get(ProductIndexEsField.isStudentPrice);
|
|
|
String isStudentPrice = (String) map.getOrDefault(ProductIndexEsField.isStudentPrice,"N");
|
|
|
productMap.put("is_student_price", isStudentPrice);
|
|
|
if (isStudentPrice == null || isStudentPrice.equalsIgnoreCase("N")) {
|
|
|
productMap.put("student_price", null);
|
|
|
} else {
|
|
|
productMap.put("student_price", map.get(ProductIndexEsField.studentPrice));
|
|
|
}
|
|
|
productMap.put("student_price", "Y".equalsIgnoreCase(isStudentPrice)?map.get(ProductIndexEsField.studentPrice):null);
|
|
|
productMap.put("is_student_rebate", map.getOrDefault(ProductIndexEsField.isstudentrebate, "N"));
|
|
|
|
|
|
// 全球购相关
|
|
|
productMap.put("is_global", map.getOrDefault(ProductIndexEsField.isGlobal, "N"));
|
...
|
...
|
|