|
@@ -1648,7 +1648,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
wareQuantity = Integer.parseInt(redisCacheWareQuantity);
|
|
|
// 如果是缓存中有该商品保税仓的库存可用数缓存,因为这个可用数已经是经过计算的,所以这里需要加上购买数
|
|
|
// 避免下面提示的是计算过后的库存可用数,以致于出现误解
|
|
|
- realWareQuantity = wareQuantity + goods.getSellVolume();
|
|
|
+ realWareQuantity = wareQuantity + sellVolume;
|
|
|
}
|
|
|
// 保税仓库存 + 展销店库存 - 出区数 >= 购买数
|
|
|
if (!((wareQuantity + Integer.parseInt(stockNum) - exitRegionNumber) > sellVolume)) {
|