Authored by hugufei

类移包

... ... @@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import com.yoho.search.common.downgrade.persional.PersionalRateLimit;
import com.yoho.search.common.utils.HttpServletRequestUtils;
import com.yoho.search.models.SearchApiResult;
import com.yoho.search.service.service.IAggProductListService;
import com.yoho.search.service.scene.AggProductListService;
/**
* 活动千人千面场景
... ... @@ -24,7 +24,7 @@ import com.yoho.search.service.service.IAggProductListService;
public class AggProductListController {
@Autowired
private IAggProductListService aggProductListService;
private AggProductListService aggProductListService;
/**
* 聚合商品列表[按品牌或品类聚合-支持个性化且order无效]
... ...
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());
... ...
package com.yoho.search.service.service;
import java.util.Map;
import com.yoho.search.models.SearchApiResult;
public interface IAggProductListService {
/**
* 按品类或品牌聚合促销商品列表
*
* @param paramMap
* @return
*/
public SearchApiResult aggProductList(Map<String, String> paramMap);
/**
* 按品牌聚合促销商品列表,并且取和order最相关的前limit个品牌的商品【品牌去重】
*
* @param paramMap
* @return
*/
public SearchApiResult aggProductListByBrand(Map<String, String> paramMap);
}