|
@@ -54,7 +54,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
|
@@ -54,7 +54,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
54
|
private static final Integer TIME_24_HOUR = 24*3600;
|
54
|
private static final Integer TIME_24_HOUR = 24*3600;
|
55
|
|
55
|
|
56
|
private static final String SYSTEM_HELP_NAME = "有货";
|
56
|
private static final String SYSTEM_HELP_NAME = "有货";
|
57
|
- private static final String SYSTEM_HELP_IMAGE = "https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKic2dZ7ib6p1PJJXFpYl95ibRyvSKCib3icUiaStlRN6PWmcRZjzPn4w4moEk2xhUxpYbibuPtBNPJBMeqQ/132";
|
57
|
+ private static final String SYSTEM_HELP_IMAGE = "https://feature.yoho.cn/1019/yoho2x.png";
|
58
|
@Autowired
|
58
|
@Autowired
|
59
|
private RedisValueCache redisValueCache;
|
59
|
private RedisValueCache redisValueCache;
|
60
|
@Autowired
|
60
|
@Autowired
|
|
@@ -427,7 +427,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
|
@@ -427,7 +427,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
427
|
}
|
427
|
}
|
428
|
}
|
428
|
}
|
429
|
// 清理缓存,用户帮砍记录列表、商品详情页
|
429
|
// 清理缓存,用户帮砍记录列表、商品详情页
|
430
|
- clearCache(activityId, productSkn, userId);
|
430
|
+ clearCache(activityId, productSkn, userId, recordDb.getId());
|
431
|
// 砍价成功时,给用户推送砍价成功消息
|
431
|
// 砍价成功时,给用户推送砍价成功消息
|
432
|
if(helpUsers!=null && (helpUsers.size()+1) == cutDownPriceProductBo.getJoinNum()){
|
432
|
if(helpUsers!=null && (helpUsers.size()+1) == cutDownPriceProductBo.getJoinNum()){
|
433
|
pushSuccessMessage(userId, activityBo, cutDownPriceProductBo);
|
433
|
pushSuccessMessage(userId, activityBo, cutDownPriceProductBo);
|
|
@@ -472,7 +472,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
|
@@ -472,7 +472,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
472
|
}
|
472
|
}
|
473
|
|
473
|
|
474
|
// 清理缓存,用户帮砍记录列表、商品详情页
|
474
|
// 清理缓存,用户帮砍记录列表、商品详情页
|
475
|
- clearCache(activityId, productSkn, userId);
|
475
|
+ clearCache(activityId, productSkn, userId, record.getId());
|
476
|
|
476
|
|
477
|
CutDownPriceProductHelpUserBo bo = new CutDownPriceProductHelpUserBo();
|
477
|
CutDownPriceProductHelpUserBo bo = new CutDownPriceProductHelpUserBo();
|
478
|
bo.setUserImgUrl(userImageUrl);
|
478
|
bo.setUserImgUrl(userImageUrl);
|
|
@@ -514,9 +514,6 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
|
@@ -514,9 +514,6 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
514
|
logger.info(" system start addHelpUserInfo, userId is {}, activityId is {}, productSkn is {}", userId, activityId, productSkn);
|
514
|
logger.info(" system start addHelpUserInfo, userId is {}, activityId is {}, productSkn is {}", userId, activityId, productSkn);
|
515
|
CutDownPriceProductHelpUserBo help = addSystemHelpUserInfo(convertCutDownPriceProductSystemHelpUser(cutPriceHelpUserRequestBO), activityBo, cutDownPriceProductBo, record);
|
515
|
CutDownPriceProductHelpUserBo help = addSystemHelpUserInfo(convertCutDownPriceProductSystemHelpUser(cutPriceHelpUserRequestBO), activityBo, cutDownPriceProductBo, record);
|
516
|
cutPrice = help.getCutPrice();
|
516
|
cutPrice = help.getCutPrice();
|
517
|
- // 调uid查询用户头像
|
|
|
518
|
-// UserInfoRspBO[] userInfoBoArray = invokeUicGetUserInfo(userId.toString());
|
|
|
519
|
-// userImageUrl = buildUserImage(userId, userInfoBoArray);
|
|
|
520
|
userImageUrl = help.getUserImgUrl();
|
517
|
userImageUrl = help.getUserImgUrl();
|
521
|
}catch(Exception e){
|
518
|
}catch(Exception e){
|
522
|
logger.warn(" system addHelpUserInfo failed, userId is {}, activityId is {}, productSkn is {}, exception is {}", userId, activityId, productSkn, e);
|
519
|
logger.warn(" system addHelpUserInfo failed, userId is {}, activityId is {}, productSkn is {}, exception is {}", userId, activityId, productSkn, e);
|
|
@@ -844,9 +841,9 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
|
@@ -844,9 +841,9 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
844
|
}
|
841
|
}
|
845
|
|
842
|
|
846
|
// 清理缓存,用户帮砍记录列表、商品详情页
|
843
|
// 清理缓存,用户帮砍记录列表、商品详情页
|
847
|
- private void clearCache(Integer activityId, Integer productSkn, Integer userId) {
|
844
|
+ private void clearCache(Integer activityId, Integer productSkn, Integer userId, Integer recordId) {
|
848
|
// 清理用户帮砍记录列表
|
845
|
// 清理用户帮砍记录列表
|
849
|
- String redisKeySuffix = userId + ":" + activityId + ":" + productSkn;
|
846
|
+ String redisKeySuffix = userId + ":" + activityId + ":" + productSkn + ":" + recordId;
|
850
|
redisValueCache.delete(CacheKeyEnum.CUTDOWN_PRICE_HELP_USERLIST_INFO, redisKeySuffix);
|
847
|
redisValueCache.delete(CacheKeyEnum.CUTDOWN_PRICE_HELP_USERLIST_INFO, redisKeySuffix);
|
851
|
// 清理我的砍价列表
|
848
|
// 清理我的砍价列表
|
852
|
redisHashCache.delete(CacheKeyEnum.CUTDOWN_PRICE_MYPRODUCTLIST_INFO.getCacheKey(), userId);
|
849
|
redisHashCache.delete(CacheKeyEnum.CUTDOWN_PRICE_MYPRODUCTLIST_INFO.getCacheKey(), userId);
|