加入购物车扣除库存逻辑修改
This commit is contained in:
parent
c24434b121
commit
daf454359f
|
|
@ -175,7 +175,7 @@ public class CartService {
|
|||
if (Objects.isNull(array) || array.isEmpty()) {
|
||||
if (buyNum > 0) {
|
||||
TbCashierCart cashierCart = addCart(jsonObject.getString("productId"), skuId,
|
||||
jsonObject.getInteger("userId"), buyNum, tableId, jsonObject.getString("shopId"));
|
||||
jsonObject.getInteger("userId"), buyNum, tableId, shopId);
|
||||
jsonArray.add(cashierCart);
|
||||
amount = amount.add(new BigDecimal(cashierCart.getNumber()).multiply(cashierCart.getSalePrice().add(cashierCart.getPackFee())));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue