Authored by saihide

fix shopId

... ... @@ -56,7 +56,7 @@ public class ProductPoolDetailSknBuilder implements IndexFieldBuilder {
List<ProductPoolDetail> productPoolDetails = productPoolDetailService.selectByProductSkn(skn);
//先根据poolId去重
for (ProductPoolDetail productPoolDetail : productPoolDetails) {
if (!poolIdSet.contains(productPoolDetail.getPoolId())) {
if (!poolIdSet.contains(productPoolDetail.getPoolId()) && productPoolDetail.getProductType().equals(1)) {
poolIdSet.add(productPoolDetail.getPoolId());
productPoolDetailsTemp.add(productPoolDetail);
}
... ... @@ -69,10 +69,8 @@ public class ProductPoolDetailSknBuilder implements IndexFieldBuilder {
}
StringBuilder poolId = new StringBuilder();
for (ProductPoolDetail productPoolDetail : productPoolDetailsTemp) {
if (productPoolDetail.getProductType().equals("1")) {
poolId.append(productPoolDetail.getPoolId());
poolId.append(',');
}
poolId.append(productPoolDetail.getPoolId());
poolId.append(',');
}
ProductPoolDetailSknBO productPoolDetailSknBO = new ProductPoolDetailSknBO();
productPoolDetailSknBO.setProductSkn(skn);
... ...