代客下单创建订单修改

This commit is contained in:
2024-09-14 14:57:16 +08:00
parent c8faeb231e
commit b9ec839b3b

View File

@@ -1181,11 +1181,14 @@ public class TbShopTableServiceImpl implements TbShopTableService {
cashierCartMapper.updateById(cashierCart);
}
if (createOrderDTO.isPostPay()) {
rabbitMsgUtils.printDishesTicket(orderId, false, orderDetails);
}
if (isFirst) {
// 后付费,不增加当前台桌取餐号
if (createOrderDTO.isPostPay()) {
addGlobalCode(day, "pc", String.valueOf(createOrderDTO.getShopId()));
rabbitMsgUtils.printDishesTicket(orderId, false, orderDetails);
}
if (!createOrderDTO.isPostPay() || (addMaterId && "pending".equals(orderInfo.getStatus()))) {