修复餐位费无法结算

This commit is contained in:
SongZhang 2024-09-26 10:09:25 +08:00
parent 344c1ae874
commit 7877060aa0
1 changed files with 3 additions and 2 deletions

View File

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