|
@@ -1832,6 +1832,8 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
Integer stock = 0;
|
|
|
Integer afterFillStock = 0;
|
|
|
if (CollUtil.isNotEmpty(goodsDeviceList)) {
|
|
|
+ //goodsDeviceList 过滤商品id=1和商品id=2的商品
|
|
|
+ goodsDeviceList = goodsDeviceList.stream().filter(g -> !g.getGoodsId().equals(1) && !g.getGoodsId().equals(2)).collect(Collectors.toList());
|
|
|
stock = goodsDeviceList.stream().mapToInt(GoodsDeviceDto.Vo::getStock).sum();
|
|
|
afterFillStock = goodsDeviceList.stream().mapToInt(GoodsDeviceDto.Vo::getFillCount).sum();
|
|
|
}
|