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

This commit is contained in:
SongZhang 2024-08-26 10:17:38 +08:00
parent d272efa45f
commit 078a986e6b
1 changed files with 1 additions and 1 deletions

View File

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