| | |
| | | return; |
| | | } |
| | | |
| | | List<Long> listGid = new ArrayList<Long>(); |
| | | List<String> listGid = new ArrayList<>(); |
| | | for (QualityFactory qualityFactory : listQuery) { |
| | | TaoBaoGoodsBrief taoBaoGoodsBrief = qualityFactory.getTaoBaoGoodsBrief(); |
| | | if (taoBaoGoodsBrief == null) { |
| | | continue; |
| | | } |
| | | listGid.add(taoBaoGoodsBrief.getAuctionId()); |
| | | if (!"0".equalsIgnoreCase(taoBaoGoodsBrief.getAuctionId())) { |
| | | listGid.add(taoBaoGoodsBrief.getAuctionId()); |
| | | } else { |
| | | listGid.add(taoBaoGoodsBrief.getId() + ""); |
| | | } |
| | | } |
| | | |
| | | // API网络接口验证是否在售 |
| | |
| | | |
| | | 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(); |
| | | if (goodsId == auctionId || goodsId.equals(auctionId)) { |
| | | String auctionId = taoKeGoods.getAuctionId(); |
| | | if (TaoBaoUtil.isEqual(goodsId, auctionId)) { |
| | | stateSale = true; // 在售 |
| | | break; |
| | | } |