yujian
2019-05-29 0588d6be74335f41c79a8d8e32dbd1c3d3e47fa3
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
package com.yeshi.fanli.service.inter.lable;
 
 
import java.math.BigDecimal;
import java.util.List;
 
import net.sf.json.JSONArray;
 
import com.yeshi.fanli.entity.bus.lable.QualityFactory;
 
public interface QualityGoodsService {
 
    /**
     * 根据券面额查询商品信息
     * @param start
     * @param count
     * @param key
     * @param endAmount
     * @return
     */
    public List<QualityFactory> listQueryByCouponAmount(long start, int count, Integer key, Integer endAmount, Integer startPropor);
    public long countQueryByCouponAmount(Integer key, Integer endAmount, Integer startPropor);
    
    
    /**
     * 限时抢购商品
     * @param start
     * @param count
     * @param periodtime
     * @return
     */
    
    public List<QualityFactory> listQueryByFlashSale(long start, int count);
    public long countQueryByFlashSale();
    
    
    /**
     * 根据关键词搜索
     * @param start
     * @param count
     * @param key
     * @return
     */
    public List<QualityFactory> listQueryByKey(long start, int count, String key, Integer sort, Long systemCid,Integer hasQuan, Integer userType,
            Integer biz30day,Integer startprice, Integer endprice);
    public long countQueryByKey(String key, Long systemCid,Integer hasQuan, Integer userType,
            Integer biz30day,Integer startprice, Integer endprice);
 
    
    /**
     * 一级分类查询精选库数据
     * @param start
     * @param count
     * @param cid
     * @return
     */
    public List<QualityFactory> listQueryByClassId(long start, int count, Long cid);
 
    public long countQueryClassId(Long cid);
 
    
    /**
     * 关键词+标签id搜索商品
     * @param start
     * @param count
     * @param systemCid
     * @param key
     * @param listId
     * @param sort
     * @return
     */
    
    public List<QualityFactory> listQueryByKeyAndlabIDs(long start, int count, String key, List<Long> listId, 
            Integer sort,Long systemCid, Integer hasQuan, Integer userType, Integer biz30day, Integer startprice, Integer endprice);
    public long countQueryKeyAndlabIDs(String key, List<Long> listId, Long systemCid,Integer hasQuan, Integer userType,
            Integer biz30day,Integer startprice, Integer endprice);
 
    
    
    /**
     * 返利金额数据查询
     * @param start
     * @param count
     * @param proportion
     * @param startAmount
     * @param endAmount
     * @return
     */
    public List<QualityFactory> listQueryByRebateAmount(long start, int count, String proportion, Integer startAmount, Integer endAmount, double tkRate);
 
    public long countQueryByRebateAmount(String proportion, Integer startAmount, Integer endAmount, double tkRate);
 
 
    /**
     * 优惠券栏目 精选库每日最新入库的商品 且前200条数据,
     * @param start
     * @param count
     * @return
     */
    public List<QualityFactory> queryToCouponColumn(long start, int count);
    
    public long countQueryToCouponColumn();
 
    
    /**
     * 返利金额数据查询 - 首页最底部@商品信息流:券面额高(高于5元以上)返利金额高的(2元以上),返利佣金比例高的(5%以上)
     * @param start
     * @param count
     * @param proportion  分成比例
     * @param startAmount  返利
     * @param couponAmount 券面额
     * @param tkRate   佣金比例
     * @return
     */
    public List<QualityFactory> listRecommend(long start, int count, Double proportion, Integer startAmount,
            Integer couponAmount, double tkRate, Double couponRatio);
    
    public long countRecommend(Double proportion, Integer startAmount, Integer couponAmount, 
            double tkRate, Double couponRatio);
    
    /**
     *  根据关键词进行搜索商品-搜索-推荐
     * @param start
     * @param count
     * @param key 关键词
     * @return
     */
    public List<QualityFactory> listRecommendBykey(long start, int count, String key, Integer hasQuan,
            Integer userType, Double startprice, Double endprice, Double startTkRate, Double endTkRate, Integer sort);
    
    public long countRecommendBykey(String key, Integer hasQuan, Integer userType, 
            Double startprice, Double endprice, Double startTkRate, Double endTkRate);
    
    
    /**
     * 首页推荐
     * @param start  起始位置
     * @param count  返回总行数
     * @param proportion  计算比例
     * @return
     */
    public JSONArray  getRecommendToIndex(long start, int count, String proportion);
    
    public long countRecommendToIndex(String proportion);
    
    /**
     * 单个商品根据标签推荐商品
     * @param paramLong
     * @param paramString1
     * @param paramString2
     * @return
     */
    public  List<QualityFactory> recommendByAuctionId(Long paramLong);
    
    
 
    /**
     * 免单商品
     * @param start
     * @param count
     * @param tkRate 佣金比例
     * @param lableName 标签名
     * @return
     */
    public List<QualityFactory> listFreeGoods(long start, int count, Double tkRate, String lableName);
 
    public long countFreeGoods(Double tkRate, String lableName);
    
    /**
     * 限时秒杀随机3个商品
     * @return
     */
    public List<QualityFactory> listFlashSaleRandGoods();
    
    
    /**
     * 根据店铺id查询
     * @param start
     * @param count
     * @param shopId
     * @return
     */
    public List<QualityFactory> listByShopId(long start, int count, Long shopId);
    
    public long countByShopId(Long shopId);
    
    
    /**
     * 9k9类商品筛选
     * @param start
     * @param count
     * @param biz30day
     * @param zkPrice
     * @param minQuanPrice
     * @param maxQuanPrice
     * @param cids
     * @return
     */
    public List<QualityFactory> get9k9ClassGoods(long start, int count, Integer biz30day, BigDecimal zkPrice,
            BigDecimal minQuanPrice, BigDecimal maxQuanPrice, String cids);
    
    public long count9k9ClassGoods(Integer biz30day, BigDecimal zkPrice, BigDecimal minQuanPrice, BigDecimal maxQuanPrice,
            String cids);
    
    
    /**
     * 9k9中的每日必抢
     * @param start
     * @param count
     * @param zkPrice
     * @param minQuanPrice
     * @param maxQuanPrice
     * @return
     */
    public List<QualityFactory> listQueryEverydayRob(long start, int count, BigDecimal zkPrice, BigDecimal minQuanPrice,
            BigDecimal maxQuanPrice);
    
    public long countQueryEverydayRob(BigDecimal zkPrice, BigDecimal minQuanPrice, BigDecimal maxQuanPrice);
}