fix: 转桌并桌实现

This commit is contained in:
张松
2024-12-10 18:00:15 +08:00
parent 13855e0fab
commit ee7e0a8eb0

View File

@@ -3400,7 +3400,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
TbCashierCart currentSeatFee = null;
ArrayList<TbCashierCart> updateCartInfos = new ArrayList<>();
for (TbCashierCart item : cashierCarts) {
if (targetSeatFee == null || !TableConstant.CART_SEAT_ID.equals(item.getId().toString())) {
if (targetSeatFee == null || !TableConstant.CART_SEAT_ID.equals(item.getProductId())) {
item.setTableId(switchTableDTO.getTargetTableId());
item.setMasterId(masterId);
updateCartInfos.add(item);
@@ -3411,7 +3411,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
orderId = item.getOrderId();
}
if (TableConstant.CART_SEAT_ID.equals(item.getProductId().toString())) {
if (TableConstant.CART_SEAT_ID.equals(item.getProductId())) {
currentSeatFee = item;
}
}