| | |
| | | @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
|