|
|
package com.yoho.search.service.service.impl;
|
|
|
package com.yoho.search.service.scene;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
...
|
...
|
@@ -48,12 +48,11 @@ import com.yoho.search.service.base.index.ProductIndexBaseService; |
|
|
import com.yoho.search.service.helper.SearchCommonHelper;
|
|
|
import com.yoho.search.service.helper.SearchParamHelper;
|
|
|
import com.yoho.search.service.helper.SearchSortHelper;
|
|
|
import com.yoho.search.service.service.IAggProductListService;
|
|
|
|
|
|
@Service
|
|
|
public class AggProductListServiceImpl implements IAggProductListService, ApplicationEventPublisherAware {
|
|
|
public class AggProductListService implements ApplicationEventPublisherAware {
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(AggProductListServiceImpl.class);
|
|
|
private static final Logger logger = LoggerFactory.getLogger(AggProductListService.class);
|
|
|
|
|
|
@Autowired
|
|
|
private SearchCommonHelper searchCommonHelper;
|
...
|
...
|
@@ -122,7 +121,6 @@ public class AggProductListServiceImpl implements IAggProductListService, Applic |
|
|
* @aggTypeSize=1|2|3[每种品牌最多的个数]
|
|
|
* @second_order=shelve_time:desc[次要排序条件]
|
|
|
*/
|
|
|
@Override
|
|
|
@SearchCacheAble(cacheInMinute = 60, cacheName = "AGG_PRODUCT_LIST", excludeParams = { "order", "yh_channel", "pageId" })
|
|
|
public SearchApiResult aggProductList(Map<String, String> paramMap) {
|
|
|
logger.info("[func=aggProductList][param={}][begin={}]", paramMap.toString(), System.currentTimeMillis());
|
...
|
...
|
@@ -172,7 +170,6 @@ public class AggProductListServiceImpl implements IAggProductListService, Applic |
|
|
* @aggTypeSize=1|2|3[每种个品牌下面最多的个数]
|
|
|
* @second_order=shelve_time:desc[次要排序条件]
|
|
|
*/
|
|
|
@Override
|
|
|
@SearchCacheAble(cacheInMinute = 60, cacheName = "AGG_PRODUCT_LIST_BY_BRAND", excludeParams = { "order", "yh_channel", "pageId"})
|
|
|
public SearchApiResult aggProductListByBrand(Map<String, String> paramMap) {
|
|
|
logger.info("[func=aggProductListByBrand][param={}][begin={}]", paramMap.toString(), System.currentTimeMillis());
|
...
|
...
|
|