diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/shopimpl/TbShopTableServiceImpl.java b/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/shopimpl/TbShopTableServiceImpl.java index bb60c48c..fa9555b2 100644 --- a/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/shopimpl/TbShopTableServiceImpl.java +++ b/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/shopimpl/TbShopTableServiceImpl.java @@ -2694,7 +2694,9 @@ public class TbShopTableServiceImpl implements TbShopTableService { throw new BadRequestException("当前店铺无需选择餐位费"); } - TbShopTable shopTable = mpShopTableService.lambdaQuery().eq(TbShopTable::getQrcode, choseCountDTO.getTableId()).one(); + TbShopTable shopTable = mpShopTableService.lambdaQuery() + .eq(TbShopTable::getShopId, choseCountDTO.getShopId()) + .eq(TbShopTable::getQrcode, choseCountDTO.getTableId()).one(); if (shopTable == null) { throw new BadRequestException("台桌不存在"); }