fix: 修复选择台桌购物车未查询出数据问题

This commit is contained in:
2024-10-25 11:39:34 +08:00
parent 35ad186a9d
commit dbf29b5e38
3 changed files with 42 additions and 1 deletions

View File

@@ -1782,7 +1782,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
throw new BadRequestException("台桌不存在或不处于空闲状态");
}
List<TbCashierCart> tbCashierCarts = mpCashierCartService.selectTakeoutCart(choseTableDTO.getMasterId(), choseTableDTO.getShopId());
List<TbCashierCart> tbCashierCarts = mpCashierCartService.selectUnTableCart(choseTableDTO.getMasterId(), choseTableDTO.getShopId());
if (tbCashierCarts.isEmpty()) {
throw new BadRequestException("购物车为空");
}