|
@@ -92,6 +92,7 @@ public class PromotionProductMqListener extends AbstractMqListener implements Ch |
|
@@ -92,6 +92,7 @@ public class PromotionProductMqListener extends AbstractMqListener implements Ch |
92
|
private void updateProductIndex(Integer productSkn, long currentTimeMillis,String key){
|
92
|
private void updateProductIndex(Integer productSkn, long currentTimeMillis,String key){
|
93
|
String promotionIds=promotionProductService.getPromotionIds(productSkn);
|
93
|
String promotionIds=promotionProductService.getPromotionIds(productSkn);
|
94
|
Integer productId=productService.selectProductIdBySkn(productSkn);
|
94
|
Integer productId=productService.selectProductIdBySkn(productSkn);
|
|
|
95
|
+ logger.info("[func=updateProductIndex][step=saveToES][key={}][productId={}][promotionIds={}]", key,productId, promotionIds);
|
95
|
Map<String, Object> indexData = new HashMap<String, Object>();
|
96
|
Map<String, Object> indexData = new HashMap<String, Object>();
|
96
|
indexData.put("productId", productId);
|
97
|
indexData.put("productId", productId);
|
97
|
indexData.put("promotionIds", promotionIds);
|
98
|
indexData.put("promotionIds", promotionIds);
|