1.代客下单 库存不足提示商品名
This commit is contained in:
@@ -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>()
|
||||
|
||||
Reference in New Issue
Block a user