Authored by gemingdan

update

... ... @@ -108,7 +108,7 @@ public class PromotionProductMqListener extends AbstractMqListener implements Ch
private void updateProductIndex(Integer productSkn, long currentTimeMillis,String key){
String promotionIds=promotionProductService.getPromotionIds(productSkn);
Integer productId=productService.selectProductIdBySkn(productSkn);
logger.info("[func=updateProductIndex][step=saveToES][key={}][productId={}][promotionIds={}]", key,productId, promotionIds);
logger.info("[func=updateProductIndex][key={}][productId={}][promotionIds={}]", key,productId, promotionIds);
Map<String, Object> indexData = new HashMap<String, Object>();
indexData.put("productId", productId);
indexData.put("promotionIds", promotionIds);
... ...
... ... @@ -26,7 +26,7 @@ public class PromotionProductService {
result.append(pp.getPromotionId()).append(",");
}
if(result.length()<1){
return null;
return "";
}
return result.substring(0,result.length()-1);
}
... ...