Authored by hugufei

类移包

@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.ResponseBody; @@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
13 import com.yoho.search.common.downgrade.persional.PersionalRateLimit; 13 import com.yoho.search.common.downgrade.persional.PersionalRateLimit;
14 import com.yoho.search.common.utils.HttpServletRequestUtils; 14 import com.yoho.search.common.utils.HttpServletRequestUtils;
15 import com.yoho.search.models.SearchApiResult; 15 import com.yoho.search.models.SearchApiResult;
16 -import com.yoho.search.service.service.IAggProductListService; 16 +import com.yoho.search.service.scene.AggProductListService;
17 17
18 /** 18 /**
19 * 活动千人千面场景 19 * 活动千人千面场景
@@ -24,7 +24,7 @@ import com.yoho.search.service.service.IAggProductListService; @@ -24,7 +24,7 @@ import com.yoho.search.service.service.IAggProductListService;
24 public class AggProductListController { 24 public class AggProductListController {
25 25
26 @Autowired 26 @Autowired
27 - private IAggProductListService aggProductListService; 27 + private AggProductListService aggProductListService;
28 28
29 /** 29 /**
30 * 聚合商品列表[按品牌或品类聚合-支持个性化且order无效] 30 * 聚合商品列表[按品牌或品类聚合-支持个性化且order无效]
1 -package com.yoho.search.service.service.impl; 1 +package com.yoho.search.service.scene;
2 2
3 import java.util.ArrayList; 3 import java.util.ArrayList;
4 import java.util.Arrays; 4 import java.util.Arrays;
@@ -48,12 +48,11 @@ import com.yoho.search.service.base.index.ProductIndexBaseService; @@ -48,12 +48,11 @@ import com.yoho.search.service.base.index.ProductIndexBaseService;
48 import com.yoho.search.service.helper.SearchCommonHelper; 48 import com.yoho.search.service.helper.SearchCommonHelper;
49 import com.yoho.search.service.helper.SearchParamHelper; 49 import com.yoho.search.service.helper.SearchParamHelper;
50 import com.yoho.search.service.helper.SearchSortHelper; 50 import com.yoho.search.service.helper.SearchSortHelper;
51 -import com.yoho.search.service.service.IAggProductListService;  
52 51
53 @Service 52 @Service
54 -public class AggProductListServiceImpl implements IAggProductListService, ApplicationEventPublisherAware { 53 +public class AggProductListService implements ApplicationEventPublisherAware {
55 54
56 - private static final Logger logger = LoggerFactory.getLogger(AggProductListServiceImpl.class); 55 + private static final Logger logger = LoggerFactory.getLogger(AggProductListService.class);
57 56
58 @Autowired 57 @Autowired
59 private SearchCommonHelper searchCommonHelper; 58 private SearchCommonHelper searchCommonHelper;
@@ -122,7 +121,6 @@ public class AggProductListServiceImpl implements IAggProductListService, Applic @@ -122,7 +121,6 @@ public class AggProductListServiceImpl implements IAggProductListService, Applic
122 * @aggTypeSize=1|2|3[每种品牌最多的个数] 121 * @aggTypeSize=1|2|3[每种品牌最多的个数]
123 * @second_order=shelve_time:desc[次要排序条件] 122 * @second_order=shelve_time:desc[次要排序条件]
124 */ 123 */
125 - @Override  
126 @SearchCacheAble(cacheInMinute = 60, cacheName = "AGG_PRODUCT_LIST", excludeParams = { "order", "yh_channel", "pageId" }) 124 @SearchCacheAble(cacheInMinute = 60, cacheName = "AGG_PRODUCT_LIST", excludeParams = { "order", "yh_channel", "pageId" })
127 public SearchApiResult aggProductList(Map<String, String> paramMap) { 125 public SearchApiResult aggProductList(Map<String, String> paramMap) {
128 logger.info("[func=aggProductList][param={}][begin={}]", paramMap.toString(), System.currentTimeMillis()); 126 logger.info("[func=aggProductList][param={}][begin={}]", paramMap.toString(), System.currentTimeMillis());
@@ -172,7 +170,6 @@ public class AggProductListServiceImpl implements IAggProductListService, Applic @@ -172,7 +170,6 @@ public class AggProductListServiceImpl implements IAggProductListService, Applic
172 * @aggTypeSize=1|2|3[每种个品牌下面最多的个数] 170 * @aggTypeSize=1|2|3[每种个品牌下面最多的个数]
173 * @second_order=shelve_time:desc[次要排序条件] 171 * @second_order=shelve_time:desc[次要排序条件]
174 */ 172 */
175 - @Override  
176 @SearchCacheAble(cacheInMinute = 60, cacheName = "AGG_PRODUCT_LIST_BY_BRAND", excludeParams = { "order", "yh_channel", "pageId"}) 173 @SearchCacheAble(cacheInMinute = 60, cacheName = "AGG_PRODUCT_LIST_BY_BRAND", excludeParams = { "order", "yh_channel", "pageId"})
177 public SearchApiResult aggProductListByBrand(Map<String, String> paramMap) { 174 public SearchApiResult aggProductListByBrand(Map<String, String> paramMap) {
178 logger.info("[func=aggProductListByBrand][param={}][begin={}]", paramMap.toString(), System.currentTimeMillis()); 175 logger.info("[func=aggProductListByBrand][param={}][begin={}]", paramMap.toString(), System.currentTimeMillis());
1 -package com.yoho.search.service.service;  
2 -  
3 -import java.util.Map;  
4 -  
5 -import com.yoho.search.models.SearchApiResult;  
6 -  
7 -public interface IAggProductListService {  
8 -  
9 - /**  
10 - * 按品类或品牌聚合促销商品列表  
11 - *  
12 - * @param paramMap  
13 - * @return  
14 - */  
15 - public SearchApiResult aggProductList(Map<String, String> paramMap);  
16 -  
17 - /**  
18 - * 按品牌聚合促销商品列表,并且取和order最相关的前limit个品牌的商品【品牌去重】  
19 - *  
20 - * @param paramMap  
21 - * @return  
22 - */  
23 - public SearchApiResult aggProductListByBrand(Map<String, String> paramMap);  
24 -  
25 -}