...
|
...
|
@@ -740,19 +740,17 @@ public class SearchServiceHelper { |
|
|
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"));
|
...
|
...
|
|