fix: 台桌查询修改

This commit is contained in:
张松
2024-12-20 09:45:15 +08:00
parent 616115c93c
commit 613480afa9

View File

@@ -2694,7 +2694,9 @@ public class TbShopTableServiceImpl implements TbShopTableService {
throw new BadRequestException("当前店铺无需选择餐位费"); 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) { if (shopTable == null) {
throw new BadRequestException("台桌不存在"); throw new BadRequestException("台桌不存在");
} }