Authored by gemingdan

update

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