Authored by wangshusheng

清理缓存

... ... @@ -407,7 +407,9 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService {
StringBuilder sb = new StringBuilder();
sb.append(userId);
for (CutDownPriceProductHelpUserBo helpUserBo : helpUserBos){
sb.append(",").append(helpUserBo.getHelpUserId());
if(null!=helpUserBo.getHelpUserId() && SYSTEM_HELP_ID!=helpUserBo.getHelpUserId()){
sb.append(",").append(helpUserBo.getHelpUserId());
}
}
UserInfoRspBO[] userInfoBoArray = invokeUicGetUserInfo(sb.toString());
for (CutDownPriceProductHelpUserBo helpUserBo : helpUserBos){
... ... @@ -531,9 +533,11 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService {
// 清理缓存,用户帮砍记录列表、商品详情页
private void clearCache(Integer activityId, Integer productSkn, Integer userId) {
// 取缓存
// 清理用户帮砍记录列表
String redisKeySuffix = userId + ":" + activityId + ":" + productSkn;
redisValueCache.delete(CacheKeyEnum.CUTDOWN_PRICE_HELP_USERLIST_INFO, redisKeySuffix);
// 清理我的砍价列表
redisHashCache.delete(CacheKeyEnum.CUTDOWN_PRICE_MYPRODUCTLIST_INFO.getCacheKey(), userId);
}
... ...