| | |
| | | int needCount = pageSize- listGoodsBrief.size();
|
| | | List<TaoBaoGoodsBrief> listGoods = taoBaoGoodsBriefService.listByShopId(0, needCount, sid);
|
| | | if (listGoods != null && listGoods.size() > 0) {
|
| | | |
| | | if (listGoodsBrief.size() > 0) {
|
| | | for (int i = 0; i< listGoods.size(); i ++) {
|
| | | long id = listGoods.get(i).getAuctionId();
|
| | | boolean isRepeat = false;
|
| | | for (TaoBaoGoodsBrief goodsBrief: listGoodsBrief) {
|
| | | long auctionId = goodsBrief.getAuctionId();
|
| | | if (auctionId == id) {
|
| | | isRepeat = true;
|
| | | break;
|
| | | }
|
| | | }
|
| | | if(isRepeat) {
|
| | | listGoods.remove(i);
|
| | | i--;
|
| | | }
|
| | | }
|
| | | }
|
| | | |
| | | listGoodsBrief.addAll(listGoods);
|
| | | }
|
| | | }
|