| | |
| | | package com.yeshi.fanli.util.factory;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.CollectionGoods;
|
| | | import com.yeshi.fanli.goods.CollectionGoodsV2;
|
| | | import com.yeshi.fanli.entity.goods.CollectionGoodsV2;
|
| | | import com.yeshi.fanli.entity.goods.CommonGoods;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | | import com.yeshi.fanli.util.taobao.TaoBaoUtil;
|
| | |
|
| | | public class CollectionGoodsFactory {
|
| | |
|
| | | public static CollectionGoods create(CollectionGoodsV2 collectionGoods) {
|
| | | return null;
|
| | | if (collectionGoods == null)
|
| | | return null;
|
| | | CollectionGoods cg = null;
|
| | | CommonGoods commnonGoods = collectionGoods.getCommonGoods();
|
| | | TaoBaoGoodsBrief taoBaoGoods = TaoBaoUtil.convert(commnonGoods);
|
| | | cg = TaoBaoUtil.getCollectionGoods(taoBaoGoods, collectionGoods.getUserInfo());
|
| | | if (cg != null)
|
| | | cg.setId(collectionGoods.getId());
|
| | | return cg;
|
| | | }
|
| | |
|
| | | }
|