修复餐位费无法结算

This commit is contained in:
2024-09-26 10:09:25 +08:00
parent 344c1ae874
commit 7877060aa0

View File

@@ -1145,10 +1145,11 @@ public class TbShopTableServiceImpl implements TbShopTableService {
log.info("下单,开始校验库存预警,购物车id:{}", cashierCart.getId()); log.info("下单,开始校验库存预警,购物车id:{}", cashierCart.getId());
CompletableFuture.runAsync(() -> checkWarnLineAndSendMsg(productSku, product, Integer.valueOf(cashierCart.getShopId()), cashierCart.getNumber())); CompletableFuture.runAsync(() -> checkWarnLineAndSendMsg(productSku, product, Integer.valueOf(cashierCart.getShopId()), cashierCart.getNumber()));
}
// 已经添加的商品,修改数量 // 已经添加的商品,修改数量
isFirst = updateStock(cashierCart); isFirst = updateStock(cashierCart);
}
cashierCart.setOrderId(orderId); cashierCart.setOrderId(orderId);
cashierCart.setUpdatedAt(System.currentTimeMillis()); cashierCart.setUpdatedAt(System.currentTimeMillis());
cashierCart.setStatus("pending".equals(orderInfo.getStatus()) ? "refund" : cashierCart.getStatus()); cashierCart.setStatus("pending".equals(orderInfo.getStatus()) ? "refund" : cashierCart.getStatus());