xiaoyong931011
2022-09-23 a740f17dab6666c30c680f693950ea0be6d6a16c
src/main/java/cc/mrbird/febs/mall/quartz/OrderOvertimeJob.java
@@ -60,9 +60,9 @@
                            throw new FebsException("购买商品或sku不存在");
                        }
                        if (sku.getStock() < mallOrderItem.getCnt()) {
                            throw new FebsException(sku.getSkuName() + "库存不足");
                        }
//                        if (sku.getStock() < mallOrderItem.getCnt()) {
//                            throw new FebsException(sku.getSkuName() + "库存不足");
//                        }
                        MallGoods mallGoods = mallGoodsMapper.selectById(sku.getGoodsId());
                        Integer goodsResult = mallGoodsMapper.updateStockAndVolumeByGoodsId(mallGoods.getId(), mallOrderItem.getCnt());