fix: 未下单商品不允许转台并台

This commit is contained in:
张松
2024-12-17 09:20:13 +08:00
parent 6f89b2eb3d
commit 5f0950f17f

View File

@@ -2463,6 +2463,9 @@ public class OrderService {
TbCashierCart currentSeatFee = null;
ArrayList<TbCashierCart> updateCartInfos = new ArrayList<>();
for (TbCashierCart item : cashierCarts) {
if (item.getOrderId() == null) {
throw new MsgException("未下单商品不允许转台并台");
}
if (targetSeatFee == null || !TableConstant.CART_SEAT_ID.equals(item.getProductId())) {
item.setTableId(switchTableDTO.getTargetTableId());
item.setMasterId(masterId);