Showing
1 changed file
with
6 additions
and
2 deletions
@@ -407,7 +407,9 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { | @@ -407,7 +407,9 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { | ||
407 | StringBuilder sb = new StringBuilder(); | 407 | StringBuilder sb = new StringBuilder(); |
408 | sb.append(userId); | 408 | sb.append(userId); |
409 | for (CutDownPriceProductHelpUserBo helpUserBo : helpUserBos){ | 409 | for (CutDownPriceProductHelpUserBo helpUserBo : helpUserBos){ |
410 | - sb.append(",").append(helpUserBo.getHelpUserId()); | 410 | + if(null!=helpUserBo.getHelpUserId() && SYSTEM_HELP_ID!=helpUserBo.getHelpUserId()){ |
411 | + sb.append(",").append(helpUserBo.getHelpUserId()); | ||
412 | + } | ||
411 | } | 413 | } |
412 | UserInfoRspBO[] userInfoBoArray = invokeUicGetUserInfo(sb.toString()); | 414 | UserInfoRspBO[] userInfoBoArray = invokeUicGetUserInfo(sb.toString()); |
413 | for (CutDownPriceProductHelpUserBo helpUserBo : helpUserBos){ | 415 | for (CutDownPriceProductHelpUserBo helpUserBo : helpUserBos){ |
@@ -531,9 +533,11 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { | @@ -531,9 +533,11 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { | ||
531 | 533 | ||
532 | // 清理缓存,用户帮砍记录列表、商品详情页 | 534 | // 清理缓存,用户帮砍记录列表、商品详情页 |
533 | private void clearCache(Integer activityId, Integer productSkn, Integer userId) { | 535 | private void clearCache(Integer activityId, Integer productSkn, Integer userId) { |
534 | - // 取缓存 | 536 | + // 清理用户帮砍记录列表 |
535 | String redisKeySuffix = userId + ":" + activityId + ":" + productSkn; | 537 | String redisKeySuffix = userId + ":" + activityId + ":" + productSkn; |
536 | redisValueCache.delete(CacheKeyEnum.CUTDOWN_PRICE_HELP_USERLIST_INFO, redisKeySuffix); | 538 | redisValueCache.delete(CacheKeyEnum.CUTDOWN_PRICE_HELP_USERLIST_INFO, redisKeySuffix); |
539 | + // 清理我的砍价列表 | ||
540 | + redisHashCache.delete(CacheKeyEnum.CUTDOWN_PRICE_MYPRODUCTLIST_INFO.getCacheKey(), userId); | ||
537 | 541 | ||
538 | } | 542 | } |
539 | 543 |
-
Please register or login to post a comment