Authored by Gino Zhang

搜索支持学生返币

... ... @@ -163,6 +163,9 @@ public class ProductPriceMqListener extends AbstractMqListener implements Channe
indexData.put("specialoffer", specialoffer);
indexData.put("isDiscount", isDiscount);
// 是否支持返币 当学生返币比率大于0时支持返币
indexData.put("isstudentrebate", productPrice.getStudentCoinRate() == null || productPrice.getStudentCoinRate().compareTo(BigDecimal.ZERO) == 0 ? "0" : "1");
// 更新商品索引
this.updateProductIndexWithDataMap(indexData, productId, key, begin);
}
... ...