feat: 添加临时菜数据结构变化修复
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user