|
|
@@ -2211,6 +2211,7 @@ public class LiveOrderServiceImpl implements ILiveOrderService {
|
|
|
if(live == null) return R.error("当前直播不存在");
|
|
|
FsStoreProduct fsStoreProduct = fsStoreProductService.selectFsStoreProductById(liveOrder.getProductId());
|
|
|
LiveGoods goods = liveGoodsMapper.selectLiveGoodsByProductId(liveOrder.getLiveId(), liveOrder.getProductId());
|
|
|
+ if(goods == null) return R.error("当前商品不存在");
|
|
|
|
|
|
// 更改店铺库存
|
|
|
fsStoreProduct.setStock(fsStoreProduct.getStock()-Integer.parseInt(liveOrder.getTotalNum()));
|