xiaoyong931011
2021-09-28 788fab0d567999583e535175f0a9f65273237f4b
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallOrderInfoServiceImpl.java
@@ -101,7 +101,12 @@
            }
            if (sku.getStock() < item.getCnt()) {
                throw new FebsException("库存不足");
                throw new FebsException(sku.getSkuName() + "库存不足");
            }
            MallGoods mallGoods = mallGoodsMapper.selectById(sku.getGoodsId());
            if (MallGoods.ISSALE_STATUS_DISABLED.equals(mallGoods.getIsSale())) {
                throw new FebsException(mallGoods.getGoodsName() + "已下架");
            }
            MallOrderItem orderItem = new MallOrderItem();