| | |
| | |
|
| | | import com.yeshi.fanli.dto.pdd.PDDGoodsDetail;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoShop;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoShopInfo;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | | import com.yeshi.fanli.vo.goods.ShopInfoVO;
|
| | |
|
| | |
| | | return shopInfoVO;
|
| | | }
|
| | |
|
| | |
|
| | | /**
|
| | | * 淘宝店铺
|
| | | * @param goods 淘宝商品
|
| | | * @param pid
|
| | | * @param fanLiRate 返利比例
|
| | | * @return
|
| | | */
|
| | | public static ShopInfoVO convertTaoBaoShop(TaoBaoShopInfo shop) {
|
| | | ShopInfoVO shopInfoVO = new ShopInfoVO();
|
| | | shopInfoVO.setId(shop.getUserId().toString());
|
| | | shopInfoVO.setShopName(shop.getShopTitle());
|
| | | shopInfoVO.setShopIcon(shop.getPictureUrl());
|
| | | shopInfoVO.setShopLink(shop.getShopUrl());
|
| | | String shopType = shop.getShopType();
|
| | | if (shopType != null && "B".equalsIgnoreCase(shopType)) {
|
| | | shopInfoVO.setUserType(11); // 天猫
|
| | | } else {
|
| | | shopInfoVO.setUserType(10); // 淘宝
|
| | | }
|
| | | return shopInfoVO;
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * 拼多多店铺
|