...
|
...
|
@@ -29,6 +29,9 @@ public class BasePinRatioBuilder implements ViewBuilder { |
|
|
|
|
|
@Override
|
|
|
public void build(List<ProductIndexBO> productIndexBOs, List<Integer> ids, List<Integer> sknList) {
|
|
|
if (basePinRatioMapper.selectCount() == 0) {
|
|
|
return;
|
|
|
}
|
|
|
Map<Integer, BasePinRatio> basePinRatioMap = this.getBasePinRatioMap(sknList);
|
|
|
productIndexBOs.stream().forEach(productIndexBO -> productIndexBO.setBasePinRatio(Optional.ofNullable(basePinRatioMap.get(productIndexBO.getProductSkn()))
|
|
|
.map(BasePinRatio::getBasePinRatio)
|
...
|
...
|
|