From 613480afa94ab29fb94e87f3b5c5ede9ed5e6861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Fri, 20 Dec 2024 09:45:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=B0=E6=A1=8C=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cashier/service/impl/shopimpl/TbShopTableServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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("台桌不存在"); }