1.代客下单 库存不足提示商品名
This commit is contained in:
parent
d272efa45f
commit
078a986e6b
|
|
@ -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>()
|
||||
|
|
|
|||
Loading…
Reference in New Issue