| | |
| | | |
| | | if (listGoodsBrief.size() > 0) { |
| | | for (int i = 0; i < listGoods.size(); i++) { |
| | | long id = listGoods.get(i).getAuctionId(); |
| | | String id = listGoods.get(i).getAuctionId(); |
| | | boolean isRepeat = false; |
| | | for (TaoBaoGoodsBrief goodsBrief : listGoodsBrief) { |
| | | long auctionId = goodsBrief.getAuctionId(); |
| | | if (auctionId == id) { |
| | | String auctionId = goodsBrief.getAuctionId(); |
| | | if (auctionId.equalsIgnoreCase( id)) { |
| | | isRepeat = true; |
| | | break; |
| | | } |
| | |
| | | |
| | | JSONArray array = new JSONArray(); |
| | | if (listGoodsBrief.size() > 0) { |
| | | List<Long> listGid = new ArrayList<Long>(); |
| | | List<String> listGid = new ArrayList<>(); |
| | | for (TaoBaoGoodsBrief taoBaoGoodsBrief : listGoodsBrief) { |
| | | listGid.add(taoBaoGoodsBrief.getAuctionId()); |
| | | } |
| | |
| | | for (TaoBaoGoodsBrief taoBaoGoodsBrief : listGoodsBrief) { |
| | | if (listTaoKeGoods != null && listTaoKeGoods.size() > 0) { |
| | | boolean stateSale = false; // 默认停售 |
| | | Long goodsId = taoBaoGoodsBrief.getAuctionId(); |
| | | String goodsId = taoBaoGoodsBrief.getAuctionId(); |
| | | for (TaoBaoGoodsBrief taoKeGoods : listTaoKeGoods) { |
| | | Long auctionId = taoKeGoods.getAuctionId(); |
| | | String auctionId = taoKeGoods.getAuctionId(); |
| | | if (goodsId == auctionId || goodsId.equals(auctionId)) { |
| | | stateSale = true; // 在售 |
| | | break; |