fix: 转桌并桌实现
This commit is contained in:
@@ -3400,7 +3400,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
TbCashierCart currentSeatFee = null;
|
TbCashierCart currentSeatFee = null;
|
||||||
ArrayList<TbCashierCart> updateCartInfos = new ArrayList<>();
|
ArrayList<TbCashierCart> updateCartInfos = new ArrayList<>();
|
||||||
for (TbCashierCart item : cashierCarts) {
|
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.setTableId(switchTableDTO.getTargetTableId());
|
||||||
item.setMasterId(masterId);
|
item.setMasterId(masterId);
|
||||||
updateCartInfos.add(item);
|
updateCartInfos.add(item);
|
||||||
@@ -3411,7 +3411,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
orderId = item.getOrderId();
|
orderId = item.getOrderId();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TableConstant.CART_SEAT_ID.equals(item.getProductId().toString())) {
|
if (TableConstant.CART_SEAT_ID.equals(item.getProductId())) {
|
||||||
currentSeatFee = item;
|
currentSeatFee = item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user