Authored by wangshusheng

日志

@@ -61,7 +61,6 @@ public class CutDownPriceActivityServiceImpl implements ICutDownPriceActivitySer @@ -61,7 +61,6 @@ public class CutDownPriceActivityServiceImpl implements ICutDownPriceActivitySer
61 String redisKeySuffix = activityId + ""; 61 String redisKeySuffix = activityId + "";
62 CutDownPriceActivityBo cutDownPriceActivityBo = redisValueCache.get(CacheKeyEnum.CUTDOWN_PRICE_ACTIVITYBO_INFO, redisKeySuffix, CutDownPriceActivityBo.class); 62 CutDownPriceActivityBo cutDownPriceActivityBo = redisValueCache.get(CacheKeyEnum.CUTDOWN_PRICE_ACTIVITYBO_INFO, redisKeySuffix, CutDownPriceActivityBo.class);
63 if (null != cutDownPriceActivityBo){ 63 if (null != cutDownPriceActivityBo){
64 - logger.info("CutDownPriceActivityServiceImpl :: queryActivityInfo getCache result is{}",cutDownPriceActivityBo);  
65 return cutDownPriceActivityBo; 64 return cutDownPriceActivityBo;
66 } 65 }
67 CutDownPriceActivity cutDownPriceActivity = cutDownPriceActivityMapper.selectCutDownPriceActivity(activityId); 66 CutDownPriceActivity cutDownPriceActivity = cutDownPriceActivityMapper.selectCutDownPriceActivity(activityId);
@@ -48,7 +48,6 @@ public class CutDownPriceProductServiceImpl implements ICutDownPriceProductServi @@ -48,7 +48,6 @@ public class CutDownPriceProductServiceImpl implements ICutDownPriceProductServi
48 String redisKeySuffix = activityId + ":" + productSkn; 48 String redisKeySuffix = activityId + ":" + productSkn;
49 CutDownPriceProductBo cutDownPriceProductBo = redisValueCache.get(CacheKeyEnum.CUTDOWN_PRICE_PRODUCTBO_INFO, redisKeySuffix, CutDownPriceProductBo.class); 49 CutDownPriceProductBo cutDownPriceProductBo = redisValueCache.get(CacheKeyEnum.CUTDOWN_PRICE_PRODUCTBO_INFO, redisKeySuffix, CutDownPriceProductBo.class);
50 if (null != cutDownPriceProductBo){ 50 if (null != cutDownPriceProductBo){
51 - logger.info("CutDownPriceProductServiceImpl :: queryCutDownPriceProductBo getCache result is{}",cutDownPriceProductBo);  
52 return cutDownPriceProductBo; 51 return cutDownPriceProductBo;
53 } 52 }
54 CutDownPriceProduct cutDownPriceProduct = cutDownPriceProductMapper.selectCutDownPriceProduct(activityId, productSkn); 53 CutDownPriceProduct cutDownPriceProduct = cutDownPriceProductMapper.selectCutDownPriceProduct(activityId, productSkn);
@@ -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);