fix: 未下单商品不允许转台并台
This commit is contained in:
@@ -2463,6 +2463,9 @@ public class OrderService {
|
|||||||
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 (item.getOrderId() == null) {
|
||||||
|
throw new MsgException("未下单商品不允许转台并台");
|
||||||
|
}
|
||||||
if (targetSeatFee == null || !TableConstant.CART_SEAT_ID.equals(item.getProductId())) {
|
if (targetSeatFee == null || !TableConstant.CART_SEAT_ID.equals(item.getProductId())) {
|
||||||
item.setTableId(switchTableDTO.getTargetTableId());
|
item.setTableId(switchTableDTO.getTargetTableId());
|
||||||
item.setMasterId(masterId);
|
item.setMasterId(masterId);
|
||||||
|
|||||||
Reference in New Issue
Block a user