...
|
...
|
@@ -20,7 +20,7 @@ public class ProductSizesBuilder implements ViewBuilder { |
|
|
|
|
|
@Autowired
|
|
|
private ProductSizesLogicService productSizesLogicService;
|
|
|
|
|
|
|
|
|
@Override
|
|
|
public void build(List<ProductIndexBO> productIndexBOs, List<Integer> ids, List<Integer> sknList) {
|
|
|
List<ProductSizesBO> productSizess = productSizesLogicService.getProductSizeBOList(ids);
|
...
|
...
|
@@ -31,9 +31,12 @@ public class ProductSizesBuilder implements ViewBuilder { |
|
|
productIndexBO.setIsSoonSoldOut("Y");
|
|
|
productIndexBO.setIsSoldOut("Y");
|
|
|
productIndexBO.setSoldOut(1);
|
|
|
productIndexBO.setSizeIds("");
|
|
|
productIndexBO.setSizeNames("");
|
|
|
productIndexBO.setBreakSizePercent(100);
|
|
|
productIndexBO.setHeatValue(new BigDecimal(0));
|
|
|
|
|
|
productIndexBO.setSkuIds("");
|
|
|
|
|
|
// fill property from ProductSizesBO
|
|
|
ProductSizesBO productSizesBO = productSizesMap.get(productIndexBO.getProductId());
|
|
|
if (productSizesBO != null) {
|
...
|
...
|
@@ -45,6 +48,7 @@ public class ProductSizesBuilder implements ViewBuilder { |
|
|
productIndexBO.setSizeNames(productSizesBO.getSizeNames());
|
|
|
productIndexBO.setBreakSizePercent(productSizesBO.getBreakSizePercent());
|
|
|
productIndexBO.setHeatValue(productSizesBO.getHeatValue());
|
|
|
productIndexBO.setSkuIds(productSizesBO.getSkuIds());
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|