...
|
...
|
@@ -890,13 +890,20 @@ public class ProductIndexLogicService { |
|
|
Map<Integer, String> boList= new HashMap<Integer,String>();
|
|
|
List<PromotionProduct> list = promotionProductMapper.selectListBySkns(skns);
|
|
|
for(PromotionProduct pp:list){
|
|
|
String ps=boList.get(pp.getProductSkn());
|
|
|
if(ps==null){
|
|
|
boList.put(pp.getProductSkn(), pp.getPromotionId().toString());
|
|
|
}else{
|
|
|
boList.put(pp.getProductSkn(), new StringBuffer(ps).append(",").append(pp.getPromotionId()).toString());
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
Integer promotionId = pp.getPromotionId();
|
|
|
if(promotionId==null){
|
|
|
continue;
|
|
|
}
|
|
|
String ps=boList.get(pp.getProductSkn());
|
|
|
if(ps==null){
|
|
|
boList.put(pp.getProductSkn(), promotionId.toString());
|
|
|
}else{
|
|
|
boList.put(pp.getProductSkn(), new StringBuffer(ps).append(",").append(promotionId.toString()).toString());
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error(e.getMessage(),e);
|
|
|
}
|
|
|
}
|
|
|
return boList;
|
|
|
}
|
...
|
...
|
|