| | |
| | |
|
| | | if (!StringUtil.isNullOrEmpty(item.optString("material_lib_type")))
|
| | | goods.setMaterialLibType(item.optInt("material_lib_type"));
|
| | | else
|
| | | goods.setMaterialLibType(0);
|
| | |
|
| | | return goods;
|
| | | }
|
| | |
| | | goods.setFreeShipment(1);
|
| | |
|
| | | if ("1".equalsIgnoreCase(item.optString("material_lib_type")))
|
| | | ;
|
| | | goods.setMaterialLibType(1);
|
| | | else
|
| | | goods.setMaterialLibType(0);
|
| | |
|
| | | goodsList.add(goods);
|
| | | }
|
| | |
| | | g.setCouponStartFee(new BigDecimal(0));
|
| | | }
|
| | | g.setCreatetime(new Date());
|
| | | g.setMaterialLibType(goods.getMaterialLibType());
|
| | | return g;
|
| | | }
|
| | | }
|
| | |
| | | g.setCouponStartFee(new BigDecimal(0));
|
| | | }
|
| | | g.setCreatetime(new Date());
|
| | | g.setMaterialLibType(goods.getMaterialLibType());
|
| | | return g;
|
| | | }
|
| | | }
|
| | |
| | | goods.setAuctionUrl(itemLink);
|
| | | if (!StringUtil.isNullOrEmpty(resultJSON.optString("coupon_info")))
|
| | | goods.setCouponLink(couponLink);
|
| | | String tkRate = resultJSON.optString("max_commission_rate");
|
| | | if (!StringUtil.isNullOrEmpty(tkRate)) {
|
| | | goods.setTkRate(new BigDecimal(tkRate));
|
| | | }
|
| | | return goods;
|
| | | } catch (TaoKeApiException e) {
|
| | | e.printStackTrace();
|
| | |
| | | }
|
| | | goods.setReservePrice(new BigDecimal(0));
|
| | | goods.setTotalFee(new BigDecimal("0"));
|
| | | goods.setPictUrlWhite(item.optString("white_image"));
|
| | | return goods;
|
| | | }
|
| | |
|