From d8359ddb48dab5cc797a9d552e11fde571f4920c Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期二, 27 八月 2019 12:32:46 +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/goods/recommend/HomeRecommendGoodsServiceImpl.java | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/recommend/HomeRecommendGoodsServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/recommend/HomeRecommendGoodsServiceImpl.java index 4e0995a..dea9c34 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/recommend/HomeRecommendGoodsServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/recommend/HomeRecommendGoodsServiceImpl.java @@ -22,6 +22,7 @@ import com.yeshi.fanli.service.inter.goods.recommend.HomeRecommendGoodsService; import com.yeshi.fanli.service.inter.goods.recommend.RecommendGoodsDeleteHistoryService; import com.yeshi.fanli.service.inter.taobao.TLJBuyGoodsService; +import com.yeshi.fanli.service.inter.taobao.TaoBaoGoodsUpdateService; import com.yeshi.fanli.service.inter.taobao.dataoke.DaTaoKeGoodsDetailService; import com.yeshi.fanli.util.Constant; import com.yeshi.fanli.util.StringUtil; @@ -44,6 +45,9 @@ @Resource private TLJBuyGoodsService tljBuyGoodsService; + + @Resource + private TaoBaoGoodsUpdateService taoBaoGoodsUpdateService; @Override public List<TaoBaoGoodsBrief> listGoodsByPage(Long uid, String device, String imei, String idfa, int page) { @@ -192,6 +196,8 @@ if (goodsList != null && goodsList.size() > 0) saveObjList(goodsList, name, key); + // 鍟嗗搧淇℃伅杩囨护 + goodsList = taoBaoGoodsUpdateService.filterImportantTaoBaoGoods(goodsList); return goodsList; } @@ -268,8 +274,8 @@ if (finalList != null && finalList.size() > 0) { Collections.shuffle(finalList); - if (finalList.size() >= 3) - finalList = finalList.subList(0, 3); + if (finalList.size() >= 10) + finalList = finalList.subList(0, 10); list = new ArrayList<>(); for (TaoBaoGoodsBrief goods : finalList) { list.add(map.get(goods.getAuctionId())); -- Gitblit v1.8.0