bug-秒杀有库存,下单提示库存不足

This commit is contained in:
xuwenbo
2020-09-08 19:35:43 +08:00
parent e61de9d406
commit ef078b84ed

View File

@ -1590,7 +1590,7 @@ public class YxStoreOrderServiceImpl extends BaseServiceImpl<StoreOrderMapper, Y
storeCartVO.getProductAttrUnique(),combinationId,"combination"); storeCartVO.getProductAttrUnique(),combinationId,"combination");
}else if(seckillId != null && seckillId > 0){ }else if(seckillId != null && seckillId > 0){
productService.decProductStock(storeCartVO.getCartNum(),storeCartVO.getProductId(), productService.decProductStock(storeCartVO.getCartNum(),storeCartVO.getProductId(),
storeCartVO.getProductAttrUnique(),combinationId,"seckill"); storeCartVO.getProductAttrUnique(),seckillId,"seckill");
}else if(bargainId != null && bargainId > 0){ }else if(bargainId != null && bargainId > 0){
storeBargainService.decStockIncSales(storeCartVO.getCartNum(),bargainId); storeBargainService.decStockIncSales(storeCartVO.getCartNum(),bargainId);
} else { } else {