Browse Source

Merge branch 'master' of http://1.14.104.71:10880/root/ylrz_his_scrm_java

peicj 1 week ago
parent
commit
ee289241f2

+ 1 - 1
fs-service/src/main/java/com/fs/live/service/impl/LiveGoodsServiceImpl.java

@@ -102,7 +102,7 @@ public class LiveGoodsServiceImpl extends ServiceImpl<LiveGoodsMapper, LiveGoods
             if(fsStoreProduct == null) return R.error("商品不存在");
             if(fsStoreProduct.getIsShow() == 0 || existGoods.getStatus() == 0) return R.error("商品已下架");
             if(fsStoreProduct.getStock() < liveGoods.getStock()) return R.error("商品库存不足");
-            stockDeductService.initStock(existGoods.getProductId(), liveGoods.getLiveId(), liveGoods.getStock().intValue());
+            stockDeductService.initStock(existGoods.getProductId(), existGoods.getLiveId(), liveGoods.getStock().intValue());
         }
         baseMapper.updateLiveGoods(liveGoods);
         return R.ok();