admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
package com.yeshi.fanli.service.inter.lable;
 
import java.util.List;
import java.util.Map;
 
import net.sf.json.JSONObject;
 
import com.yeshi.fanli.entity.bus.lable.QualityFactory;
import com.yeshi.fanli.entity.taobao.SearchFilter;
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
 
 
 
 
public interface TaoKeGoodsService {
    
 
    /**
     * 根据MaterialID 获取推荐商品信息
     * @return
     * @throws Exception
     */
    
    public List<TaoBaoGoodsBrief> listByMaterial(Integer materialId, Integer page1, int pageSize) throws Exception;
 
 
    /**
     * 物料搜索— 分类id搜索、关键词
     * @param key
     * @param cateIds
     * @param page
     * @param filterParams
     * @param order
     * @param startprice
     * @param endprice
     * @return
     */
    public JSONObject listByWuLiao( int page, String key, String cateIds, String filterParams, 
            String order, String startprice, String endprice, String searchParam);
 
 
    /**
     * 品牌购 (官方推荐【品牌券】接口)
     * @param materialId
     * @param pageIndex
     * @param pageSize
     * @return
     * @throws Exception
     */
    public JSONObject getBrandsGoods(Integer materialId, int pageIndex, int pageSize) throws Exception;
 
 
    /**
     * 获取商品店铺信息
     * @param materialId
     * @param pageIndex
     * @param pageSize
     * @return
     * @throws Exception
     */
    public JSONObject getBrandsShops(Integer materialId, int pageIndex, int pageSize) throws Exception;
 
 
    /**
     * 淘宝接口获取商品列表
     * @param sf
     * @return
     */
    public JSONObject searchWuLiao(SearchFilter sf);
 
    public List<TaoBaoGoodsBrief> searchWuLiaoList(SearchFilter sf);
 
 
    public void setSearchFilter(SearchFilter searchfilter, String filter, String order, String startprice, String endprice, String fastFilter,
            Integer totalSales);
 
 
 
 
    /**
     * 精选库数据转换
     * @param listQuality
     * @param searchWuLiaoList
     * @param map
     * @return
     */
    public JSONObject listQualityGoods(List<QualityFactory> listQuality, List<TaoBaoGoodsBrief> searchWuLiaoList, Map<String, String> map);
 
 
    /**
     * 统计精选库值 
     * @param searchKey  搜索关键词
     * @param systemCid  系统主分类
     * @param listLabId  标签id集合
     * @return
     */
    public long countByQuality(String searchKey, Long systemCid, List<Long> listLabId);
 
    
    /**
     * 查询精选库
     * @param start
     * @param count
     * @param searchKey  搜索关键词
     * @param systemCid  系统主分类
     * @param listLabId  标签id集合
     * @return
     */
    public List<QualityFactory> queryByQuality(long start, int count, String searchKey, Long systemCid, List<Long> listLabId);
 
 
 
    public JSONObject searchWuLiaoV2(SearchFilter sf,String platform,String version);
 
}