fix: 修复切换台桌取餐码未更新问题

This commit is contained in:
2024-10-25 15:34:06 +08:00
parent f0632942d5
commit 201210202f

View File

@@ -1783,6 +1783,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
throw new BadRequestException("购物车为空"); throw new BadRequestException("购物车为空");
} }
ShopEatTypeInfoDTO shopEatTypeInfoDTO = checkEatModel(choseTableDTO.getShopId(), choseTableDTO.getTableId()); ShopEatTypeInfoDTO shopEatTypeInfoDTO = checkEatModel(choseTableDTO.getShopId(), choseTableDTO.getTableId());
// 清空原有桌台商品 // 清空原有桌台商品
@@ -1790,7 +1791,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
mpCashierCartService.clearCartByTableIdAndUseType(choseTableDTO.getTableId(), shopEatTypeInfoDTO.getUseType(), choseTableDTO.getShopId()); mpCashierCartService.clearCartByTableIdAndUseType(choseTableDTO.getTableId(), shopEatTypeInfoDTO.getUseType(), choseTableDTO.getShopId());
} }
String masterId = getMasterId(choseTableDTO.getShopId(), choseTableDTO.getTableId(), shopEatTypeInfoDTO.getUseType(), null).getString("masterId"); String masterId = getMasterId(choseTableDTO.getShopId(), choseTableDTO.getTableId(), "", null).getString("masterId");
ArrayList<Integer> cartIds = new ArrayList<>(); ArrayList<Integer> cartIds = new ArrayList<>();
Integer orderId = null; Integer orderId = null;