feat: 添加临时菜数据结构变化修复

This commit is contained in:
张松 2024-11-28 18:23:34 +08:00
parent 80be3657ef
commit f3fd3a4a71
1 changed files with 4 additions and 3 deletions

View File

@ -906,8 +906,10 @@ public class TbShopTableServiceImpl implements TbShopTableService {
AtomicReference<TbCashierCart> mealCashierCart = new AtomicReference<>();
List<TbProductSku> skuList = new ArrayList<>();
if (!skuIds.isEmpty()) {
List<TbProductSku> skuList = productSkuRepository.findAllById(skuIds);
skuList = productSkuRepository.findAllById(skuIds);
}
HashMap<String, TbProductSku> skuMap = new HashMap<>();
skuList.forEach(item -> skuMap.put(item.getId().toString(), item));
@ -941,9 +943,8 @@ public class TbShopTableServiceImpl implements TbShopTableService {
Map<String, Object> map = BeanUtil.beanToMap(copyPage, false, false);
map.put("seatFee", mealCashierCart);
return map;
}
return BeanUtil.beanToMap(cartPage);
// return BeanUtil.beanToMap(cartPage);
}
@Override