Commit f3c0d289 by 周晓航

购物车 rediskey修正

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent f9538cd1
......@@ -29,7 +29,7 @@ public class RedisKeyConstant {
/**
* 用户购物车在redis的key前缀 爱马哥蛋糕预定
*/
public final static String SAAS_SHOPPINGCART_AIMAGE_KEY_PREFIX = "saas:user:info:cart:goods:";
public final static String SAAS_SHOPPINGCART_AIMAGE_KEY_PREFIX = "saas:user:info:advance:cart:goods:";
/**
* 用户购物车总价在redis的key前缀
*/
......
......@@ -65,7 +65,7 @@ public class ShoppingCartNewBaseServiceImpl implements ShoppingCartNewBaseServic
* @return
*/
private String getShoppingCartGoodsKey(String partnerId, String storeId, String userId,Integer bizType) {
if(Objects.equals(BizTypeEnum.ADVANCE_ORDER,bizType)){
if(Objects.equals(BizTypeEnum.ADVANCE_ORDER.getBizType(),bizType)){
return RedisKeyConstant.SAAS_SHOPPINGCART_AIMAGE_KEY_PREFIX + partnerId + "_" + storeId + "_" + userId;
}
return RedisKeyConstant.SAAS_SHOPPINGCART_KEY_PREFIX + partnerId + "_" + storeId + "_" + userId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment