From 59aced4fe04f7e2fdcca81cb9ef279a70522301e Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期三, 25 十二月 2019 12:30:44 +0800 Subject: [PATCH] Merge branch 'div' of ssh://193.112.35.168:29418/fanli-server into div --- fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandClassShopServiceImpl.java | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandClassShopServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandClassShopServiceImpl.java index cbf1f9a..0cce77d 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandClassShopServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandClassShopServiceImpl.java @@ -369,8 +369,8 @@ } @Override - @Cacheable(value = "brandCache", key = "'listEffectiveCacheV2-'+#page+'-'+#cid") - public JSONObject listEffectiveCacheV2(int page, Long cid) { + @Cacheable(value = "brandCache", key = "'listEffectiveCacheV2-'+#page+'-'+#cid+'-'+#platform+'-'+#version") + public JSONObject listEffectiveCacheV2(int page, Long cid,String platform,String version) { long countShop = 0; if (cid != null && cid <= 0) { @@ -431,9 +431,7 @@ count = taoBaoShopService.countBrandShopinfo(cid); } - BigDecimal fanLiRate = hongBaoManageService.getFanLiRate(); - BigDecimal shareRate = hongBaoManageService.getShareRate(); - ConfigParamsDTO paramsDTO = new ConfigParamsDTO(fanLiRate, shareRate, Constant.MAX_REWARD_RATE,hongBaoManageService.getVIPFanLiRate()); + ConfigParamsDTO paramsDTO = hongBaoManageService.getShowComputeRate(platform, version); // 娣樺疂鍟嗗搧淇℃伅杩囨护 Map<Long, TaoBaoGoodsBrief> goodsMap = getFilterTaoBaoGoods(listInfo); @@ -528,7 +526,7 @@ @Override - public List<TaoBaoShopVO> listEffectiveShop(long start, int count, Long cid) { + public List<TaoBaoShopVO> listEffectiveShop(long start, int count, Long cid,String platform,String version) { if (cid != null && cid <= 0) { cid = null; } @@ -538,9 +536,8 @@ return listInfo; - BigDecimal fanLiRate = hongBaoManageService.getFanLiRate(); - BigDecimal shareRate = hongBaoManageService.getShareRate(); - ConfigParamsDTO paramsDTO = new ConfigParamsDTO(fanLiRate, shareRate, Constant.MAX_REWARD_RATE,hongBaoManageService.getVIPFanLiRate()); + ConfigParamsDTO paramsDTO = + hongBaoManageService.getShowComputeRate(platform, version); // 娣樺疂鍟嗗搧淇℃伅杩囨护 Map<Long, TaoBaoGoodsBrief> goodsMap = getFilterTaoBaoGoods(listInfo); -- Gitblit v1.8.0