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());
|