就餐模式获取修改

This commit is contained in:
2024-09-29 14:32:12 +08:00
parent 21e68293df
commit e50f4f6438

View File

@@ -761,7 +761,7 @@ public class CartService {
}
ShopEatTypeInfoDTO shopEatTypeInfoDTO = shopUtils.checkEatModel(tableId, shopId);
Integer currentPlaceNum = getCurrentPlaceNum(tableId, shopId, shopEatTypeInfoDTO);
String tableCartKey = RedisCst.getTableCartKey(shopId, tableId, Integer.valueOf(userId));
String tableCartKey = RedisCst.getTableCartKey(shopId, shopEatTypeInfoDTO.isOpenDineIn() ? tableId : null, Integer.valueOf(userId));
JSONArray array = JSON.parseArray(redisUtil.getMessage(tableCartKey));
// 查询购物车所有信息
LambdaQueryWrapper<TbCashierCart> queryWrapper = new LambdaQueryWrapper<TbCashierCart>()