清空购物车返还库存

This commit is contained in:
2024-07-05 14:19:55 +08:00
parent 109b047a88
commit cae6555d87

View File

@@ -141,7 +141,7 @@ public class ProductService {
throw new MsgException("库存不足,下单失败"); throw new MsgException("库存不足,下单失败");
} }
}else { }else {
tbProductSkuMapper.decrStockUnCheck(productId, decrNum); tbProductMapper.decrStockUnCheck(productId, decrNum);
} }
}else { }else {
if (product.getIsStock() == 1) { if (product.getIsStock() == 1) {