fix: 获取购物车修改

This commit is contained in:
2024-10-30 16:00:46 +08:00
parent 93845145f3
commit 8ef801afa1

View File

@@ -780,7 +780,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
if (!shopEatTypeInfoDTO.isTakeout()) { if (!shopEatTypeInfoDTO.isTakeout()) {
if (StrUtil.isBlank(tableId)) { if (StrUtil.isBlank(tableId)) {
queryWrapper.isNull(TbCashierCart::getTableId); queryWrapper.and(q -> q.isNull(TbCashierCart::getTableId).or().eq(TbCashierCart::getTableId, ""));
} else { } else {
queryWrapper.eq(TbCashierCart::getTableId, tableId); queryWrapper.eq(TbCashierCart::getTableId, tableId);
} }