清空购物车返还库存

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("库存不足,下单失败");
}
}else {
tbProductSkuMapper.decrStockUnCheck(productId, decrNum);
tbProductMapper.decrStockUnCheck(productId, decrNum);
}
}else {
if (product.getIsStock() == 1) {