Authored by wangnan

fix

... ... @@ -147,11 +147,11 @@ public class ProductPoolDetailMqListener extends AbstractMqListener implements C
//把每个skn对应的多个productpool的poolid拼起来
List<ProductPoolDetail> productPoolDetails = productPoolDetailService.selectByProductSkn(productPoolDetail.getProductSkn());
//先根据poolId去重
Map<Integer,Integer> productPoolDetailsMap = new HashMap<>();
Set<Integer> productPoolDetailsSet = new HashSet<>();
List<ProductPoolDetail> productPoolDetailsTemp = new ArrayList<>();
for (ProductPoolDetail p : productPoolDetails) {
if(!productPoolDetailsMap.containsKey(p.getPoolId())){
productPoolDetailsMap.put(p.getPoolId(),p.getPoolId());
if(!productPoolDetailsSet.contains(p.getPoolId())){
productPoolDetailsSet.add(p.getPoolId());
productPoolDetailsTemp.add(p);
}
}
... ...