yj
2020-03-06 207dc8655711cddac2653e18b51e58a88dba2084
fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/dataoke/DaTaoKeGoodsDetailV2ServiceImpl.java
@@ -159,11 +159,17 @@
      for (TaoBaoGoodsBrief goods : goodsList)
         goodsIdList.add(goods.getAuctionId());
      List<DaTaoKeDetailV2> dtList = listByGoodsIds(goodsIdList);
      List<DaTaoKeDetailV2> dtList = null;
      try {
         dtList = listByGoodsIds(goodsIdList);
      } catch (Exception e) {
      }
      Map<Long, DaTaoKeDetailV2> map = new HashMap<>();
      for (DaTaoKeDetailV2 goods : dtList)
         map.put(goods.getGoodsId(), goods);
      if (dtList != null)
         for (DaTaoKeDetailV2 goods : dtList)
            map.put(goods.getGoodsId(), goods);
      for (TaoBaoGoodsBrief goods : goodsList) {
         DaTaoKeDetailV2 detail = map.get(goods.getAuctionId());
         goods = DaTaoKeUtil.filterTaoBaoGoods(goods, detail);
@@ -210,6 +216,8 @@
   @Override
   public List<DaTaoKeDetailV2> getGoodsNotInList(Long cid, List<Long> listId, int count) {
      if (cid != null && cid == 0L)
         cid = null;
      return daTaoKeGoodsDetailV2Dao.getGoodsNotInList(cid, listId, count);
   }