|
@@ -186,7 +186,13 @@ public class DailyBoardServiceImpl implements DailyBoardService {
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
// 万里牛数量
|
|
// 万里牛数量
|
|
BigDecimal wlnCount = outboundOrderList.stream()
|
|
BigDecimal wlnCount = outboundOrderList.stream()
|
|
- .filter(item -> Objects.equals(skuSpecMap.get(item.getSkuSpecCode()).getId(), orderSkuId))
|
|
|
|
|
|
+ .filter(item -> {
|
|
|
|
+ SkuSpec skuSpec = skuSpecMap.get(item.getSkuSpecCode());
|
|
|
|
+ if (skuSpec == null) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ return Objects.equals(skuSpec.getId(), orderSkuId);
|
|
|
|
+ })
|
|
.map(OutboundOrder::getQuantity)
|
|
.map(OutboundOrder::getQuantity)
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
bomDifferenceVo.setMesQuantity(bomDifferenceVo.getMesQuantity().add(mesCount));
|
|
bomDifferenceVo.setMesQuantity(bomDifferenceVo.getMesQuantity().add(mesCount));
|