| | |
| | | import org.fanli.facade.goods.service.quality.QualityGoodsService;
|
| | | import org.fanli.facade.goods.service.quality.TaoKeGoodsService;
|
| | | import org.fanli.facade.goods.service.taobao.TaoBaoShopService;
|
| | | import org.fanli.facade.goods.utils.dataoke.TaoKeApiUtil;
|
| | | import org.fanli.facade.goods.utils.taobao.TaoBaoUtil;
|
| | | import org.fanli.facade.goods.utils.taobao.TaoKeGoodsApiUtil;
|
| | | import org.fanli.facade.system.service.hongbao.HongBaoManageService;
|
| | | import org.springframework.cache.annotation.Cacheable;
|
| | | import org.yeshi.utils.JsonUtil;
|
| | |
| | | @Override
|
| | | public List<TaoBaoGoodsBrief> listByMaterial(Integer materialId, Integer pageIndex, int pageSize) throws Exception {
|
| | |
|
| | | TaoBaoSearchResult result = TaoKeApiUtil.getMaterialByMaterialId(materialId, pageIndex, pageSize);
|
| | | TaoBaoSearchResult result = TaoKeGoodsApiUtil.getMaterialByMaterialId(materialId, pageIndex, pageSize);
|
| | |
|
| | | if (result == null) {
|
| | | return null;
|
| | |
| | | @Cacheable(value = "taoKeMaterialCache", key = "'getBrandsGoods-'+#materialId +'-'+#pageIndex")
|
| | | public JSONObject getBrandsGoods(Integer materialId, int pageIndex, int pageSize) throws Exception {
|
| | |
|
| | | TaoBaoSearchResult result = TaoKeApiUtil.getMaterialByMaterialId(materialId, pageIndex, pageSize);
|
| | | TaoBaoSearchResult result = TaoKeGoodsApiUtil.getMaterialByMaterialId(materialId, pageIndex, pageSize);
|
| | |
|
| | | if (result == null) {
|
| | | return null;
|
| | |
| | | Gson gson = JsonUtil.getConvertBigDecimalToStringSubZeroBuilder(new GsonBuilder())
|
| | | .excludeFieldsWithoutExposeAnnotation().setDateFormat("yyyy-MM-dd").create();
|
| | |
|
| | | Map<String, String> map = manageService.convertMap();
|
| | |
|
| | | BigDecimal proportion = manageService.getFanLiRate();
|
| | |
|
| | |
| | | @Cacheable(value = "taoKeMaterialCache", key = "'getBrandsShops-'+#materialId +'-'+#pageIndex")
|
| | | public JSONObject getBrandsShops(Integer materialId, int pageIndex, int pageSize) throws Exception {
|
| | |
|
| | | TaoBaoSearchResult result = TaoKeApiUtil.getMaterialByMaterialId(materialId, pageIndex, pageSize);
|
| | | TaoBaoSearchResult result = TaoKeGoodsApiUtil.getMaterialByMaterialId(materialId, pageIndex, pageSize);
|
| | |
|
| | | if (result == null) {
|
| | | return null;
|
| | |
| | | public JSONObject searchWuLiao(SearchFilter sf) {
|
| | |
|
| | | // 淘宝物料接口查询
|
| | | TaoBaoSearchResult result = TaoKeApiUtil.searchWuLiao(sf);
|
| | | TaoBaoSearchResult result = TaoKeGoodsApiUtil.searchWuLiao(sf);
|
| | |
|
| | | List<TaoBaoSearchNav> navList = TaoBaoUtil.getBaseNav();
|
| | | if (result.getNavList() != null)
|
| | |
| | | int fh = sf.getHongbao();
|
| | | boolean ft = sf.isTmall();
|
| | |
|
| | | Map<String, String> map = manageService.convertMap();
|
| | | BigDecimal proportion = manageService.getFanLiRate();
|
| | |
|
| | | if (fq == 0 && fh == 0 && !ft) {
|
| | |
| | | public List<TaoBaoGoodsBrief> searchWuLiaoList(SearchFilter sf) {
|
| | |
|
| | | // 淘宝物料接口查询
|
| | | TaoBaoSearchResult result = TaoKeApiUtil.searchWuLiao(sf);
|
| | | TaoBaoSearchResult result = TaoKeGoodsApiUtil.searchWuLiao(sf);
|
| | | if (result == null)
|
| | | return null;
|
| | |
|
| | |
| | | }
|
| | |
|
| | | // 淘宝物料接口查询
|
| | | TaoBaoSearchResult result = TaoKeApiUtil.searchWuLiao(sf);
|
| | | TaoBaoSearchResult result = TaoKeGoodsApiUtil.searchWuLiao(sf);
|
| | |
|
| | | List<TaoBaoSearchNav> navList = TaoBaoUtil.getBaseNav();
|
| | | if (result.getNavList() != null)
|