| | |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoSearchResult;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoUnionConfig;
|
| | | import com.yeshi.fanli.exception.taobao.TaobaoGoodsDownException;
|
| | | import com.yeshi.fanli.goods.CommonGoods;
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.service.inter.goods.TaoBaoLinkService;
|
| | | import com.yeshi.fanli.service.inter.hongbao.HongBaoManageService;
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 常规商品转为淘宝商品对象
|
| | | * |
| | | * @param commonGoods
|
| | | * @return
|
| | | */
|
| | | public static TaoBaoGoodsBrief convert(CommonGoods commonGoods) {
|
| | | TaoBaoGoodsBrief taoBaoGoods = new TaoBaoGoodsBrief();
|
| | | taoBaoGoods.setAuctionId(commonGoods.getGoodsId());
|
| | | taoBaoGoods.setBiz30day(commonGoods.getSales());
|
| | | taoBaoGoods.setCouponAmount(commonGoods.getCouponAmount());
|
| | | taoBaoGoods.setCouponInfo(commonGoods.getCouponInfo());
|
| | | taoBaoGoods.setCouponLeftCount(commonGoods.getCouponLeftCount());
|
| | | taoBaoGoods.setCouponStartFee(commonGoods.getCouponStartPrice());
|
| | | taoBaoGoods.setCouponTotalCount(commonGoods.getCouponTotalCount());
|
| | | taoBaoGoods.setPictUrl(commonGoods.getPicture());
|
| | | taoBaoGoods.setSellerId(commonGoods.getSellerId());
|
| | | taoBaoGoods.setShopTitle(commonGoods.getSellerName());
|
| | | taoBaoGoods.setTitle(commonGoods.getTitle());
|
| | | taoBaoGoods.setUserType(commonGoods.getShopType() - 1);
|
| | | taoBaoGoods.setZkPrice(commonGoods.getPrice());
|
| | | taoBaoGoods.setTkRate(commonGoods.getRate());
|
| | | taoBaoGoods.setTkCommFee(new BigDecimal("0"));
|
| | | return taoBaoGoods;
|
| | | }
|
| | |
|
| | | public static void main(String[] args) {
|
| | | String s = channelMap.get("3");
|
| | | System.out.println(s);
|