admin
2019-07-30 573c491b4a1ba60e12a5678a01c1546c0077c1ee
fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TLJBuyGoodsServiceImpl.java
@@ -62,16 +62,17 @@
   @Cacheable(value = "commonContentCache", key = "'tljBuy-listByDay'+#day")
   @Override
   public List<TLJBuyGoods> listByDay(String day) {
      List<TLJBuyGoods> list = listByDay(day, 30);
      if (list.size() <= 10)
         return list;
      else {
         List<TLJBuyGoods> newList = new ArrayList<>();
         for (int i = 0; i < 10; i++) {
            newList.add(list.get(i));
         }
         return newList;
      }
      List<TLJBuyGoods> list = listByDay(day, 10);
      // if (list.size() <= 10)
      // return list;
      // else {
      // List<TLJBuyGoods> newList = new ArrayList<>();
      // for (int i = 0; i < 10; i++) {
      // newList.add(list.get(i));
      // }
      // return newList;
      // }
      return list;
   }
   @Override