| | |
| | | List<UserShareGoodsGroup> list = userShareGoodsRecordService.listByRecordId(shareId); |
| | | if (list != null && list.size() > 0) { |
| | | List<String> listIdTB = new ArrayList<>(); |
| | | List<Long> listIdJD = new ArrayList<Long>(); |
| | | List<String> listIdJD = new ArrayList<>(); |
| | | List<Long> listIdPDD = new ArrayList<Long>(); |
| | | |
| | | for (int i = 0; i < list.size(); i++) { |
| | |
| | | if (Constant.SOURCE_TYPE_TAOBAO == goodsType) { |
| | | listIdTB.add(commonGoods.getGoodsId()); |
| | | } else if (Constant.SOURCE_TYPE_JD == goodsType) { |
| | | listIdJD.add(Long.parseLong(commonGoods.getGoodsId())); |
| | | listIdJD.add(commonGoods.getGoodsId()); |
| | | } else if (Constant.SOURCE_TYPE_PDD == goodsType) { |
| | | listIdPDD.add(Long.parseLong(commonGoods.getGoodsId())); |
| | | } |
| | |
| | | if (listIdJD.size() > 0) { |
| | | try { |
| | | JDFilter filter = new JDFilter(); |
| | | filter.setListId(listIdJD); |
| | | filter.setListItemId(listIdJD); |
| | | filter.setPageIndex(1); |
| | | filter.setPageSize(100); |
| | | JDSearchResult result = JDApiUtil.queryByKey(filter); |