| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.yeshi.fanli.exception.pdd.PDDApiException; |
| | | import com.yeshi.fanli.util.Constant; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addBrandShopTB(BrandInfo brandInfo, Long auctionId, Long sellerId) { |
| | | public boolean addBrandShopTB(BrandInfo brandInfo, String auctionId, Long sellerId) { |
| | | TaoBaoShop taoBaoShop = taoBaoShopService.getTaoBaoShop(auctionId, sellerId); |
| | | if (taoBaoShop == null) |
| | | return true; |
| | |
| | | pddfilter.setPageSize(100); |
| | | pddfilter.setSortType(6); |
| | | pddfilter.setMerchantType(3); |
| | | |
| | | PDDGoodsResult result = PinDuoDuoApiUtil.searchGoods(pddfilter, Constant.PDD_SEARCH_CUSTOMER_PARAMS); |
| | | |
| | | PDDGoodsResult result = null; |
| | | try { |
| | | result = PinDuoDuoApiUtil.searchGoods(pddfilter, Constant.PDD_SEARCH_CUSTOMER_PARAMS); |
| | | } catch (PDDApiException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | if (result != null && result.getGoodsList() != null && result.getGoodsList().size() > 0) { |
| | | boolean addShop = true; |
| | | List<PDDGoodsDetail> goodsList = result.getGoodsList(); |