1.代客下单 库存不足提示商品名

This commit is contained in:
2024-08-26 10:17:38 +08:00
parent d272efa45f
commit 078a986e6b

View File

@@ -312,7 +312,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
if ((product.getIsDistribute().equals(1) && product.getStockNumber() < 1) if ((product.getIsDistribute().equals(1) && product.getStockNumber() < 1)
|| (!product.getIsDistribute().equals(1) && productSku.getStockNumber() < 1) || (!product.getIsDistribute().equals(1) && productSku.getStockNumber() < 1)
) { ) {
throw new BadRequestException("商品库存不足"); throw new BadRequestException(product.getName() + "商品库存不足");
} }
LambdaQueryWrapper<TbCashierCart> query = new LambdaQueryWrapper<TbCashierCart>() LambdaQueryWrapper<TbCashierCart> query = new LambdaQueryWrapper<TbCashierCart>()