|
|
@@ -95,7 +95,8 @@ public class BasketServiceImpl extends ServiceImpl<BasketMapper, Basket> impleme
|
|
|
@Override
|
|
|
public List<ShopCartItemDto> getShopCartItems(String userId) {
|
|
|
// 在这个类里面要调用这里的缓存信息,并没有使用aop,所以不使用注解
|
|
|
- List<ShopCartItemDto> shopCartItemDtoList = cacheManagerUtil.getCache("ShopCartItems", userId);
|
|
|
+ //List<ShopCartItemDto> shopCartItemDtoList = cacheManagerUtil.getCache("ShopCartItems", userId);
|
|
|
+ List<ShopCartItemDto> shopCartItemDtoList = Lists.newArrayList();
|
|
|
if (ObjectUtils.isNotEmpty(shopCartItemDtoList)) {
|
|
|
return shopCartItemDtoList;
|
|
|
}
|
|
|
@@ -105,7 +106,7 @@ public class BasketServiceImpl extends ServiceImpl<BasketMapper, Basket> impleme
|
|
|
shopCartItemDto.setWeight(shopCartItemDto.getWeight());
|
|
|
shopCartItemDto.setWeightUnit(shopCartItemDto.getWeightUnit());
|
|
|
}
|
|
|
- cacheManagerUtil.putCache("ShopCartItems", userId, shopCartItemDtoList);
|
|
|
+ //cacheManagerUtil.putCache("ShopCartItems", userId, shopCartItemDtoList);
|
|
|
return shopCartItemDtoList;
|
|
|
}
|
|
|
|