Authored by 胡古飞

商品列表支持按品牌或品类聚合【支持个性化打分】

@@ -10,26 +10,26 @@ import org.springframework.web.bind.annotation.RequestMapping; @@ -10,26 +10,26 @@ import org.springframework.web.bind.annotation.RequestMapping;
10 import org.springframework.web.bind.annotation.RequestMethod; 10 import org.springframework.web.bind.annotation.RequestMethod;
11 import org.springframework.web.bind.annotation.ResponseBody; 11 import org.springframework.web.bind.annotation.ResponseBody;
12 12
13 -import com.yoho.search.service.servicenew.INewPromotionService; 13 +import com.yoho.search.service.servicenew.IAggProductListService;
14 import com.yoho.search.service.utils.HttpServletRequestUtils; 14 import com.yoho.search.service.utils.HttpServletRequestUtils;
15 import com.yoho.search.service.vo.SearchApiResult; 15 import com.yoho.search.service.vo.SearchApiResult;
16 16
17 @Controller 17 @Controller
18 -public class NewPromotionController { 18 +public class AggProductListController {
19 19
20 @Autowired 20 @Autowired
21 - private INewPromotionService newPromotionService; 21 + private IAggProductListService aggProductListService;
22 22
23 /** 23 /**
24 - * 聚合商品列表 24 + * 聚合商品列表[按品牌或品类聚合]
25 * 25 *
26 * @return 26 * @return
27 */ 27 */
28 - @RequestMapping(method = RequestMethod.GET, value = "/newpromotion/aggProductList") 28 + @RequestMapping(method = RequestMethod.GET, value = "/productindex/aggProductList")
29 @ResponseBody 29 @ResponseBody
30 - public SearchApiResult productList(HttpServletRequest request) { 30 + public SearchApiResult aggProductList(HttpServletRequest request) {
31 Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request); 31 Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request);
32 - return newPromotionService.aggProductList(paramMap); 32 + return aggProductListService.aggProductList(paramMap);
33 } 33 }
34 34
35 } 35 }
@@ -4,7 +4,7 @@ import java.util.Map; @@ -4,7 +4,7 @@ import java.util.Map;
4 4
5 import com.yoho.search.service.vo.SearchApiResult; 5 import com.yoho.search.service.vo.SearchApiResult;
6 6
7 -public interface INewPromotionService { 7 +public interface IAggProductListService {
8 8
9 /** 9 /**
10 * 按品类或品牌聚合促销商品列表 10 * 按品类或品牌聚合促销商品列表
@@ -41,12 +41,12 @@ import com.yoho.search.service.service.SearchCommonService; @@ -41,12 +41,12 @@ import com.yoho.search.service.service.SearchCommonService;
41 import com.yoho.search.service.service.helper.SearchCommonHelper; 41 import com.yoho.search.service.service.helper.SearchCommonHelper;
42 import com.yoho.search.service.service.helper.SearchServiceHelper; 42 import com.yoho.search.service.service.helper.SearchServiceHelper;
43 import com.yoho.search.service.service.helper.SearchSortHelper; 43 import com.yoho.search.service.service.helper.SearchSortHelper;
44 -import com.yoho.search.service.servicenew.INewPromotionService; 44 +import com.yoho.search.service.servicenew.IAggProductListService;
45 import com.yoho.search.service.utils.SearchApiResultUtils; 45 import com.yoho.search.service.utils.SearchApiResultUtils;
46 import com.yoho.search.service.vo.SearchApiResult; 46 import com.yoho.search.service.vo.SearchApiResult;
47 47
48 @Service 48 @Service
49 -public class NewPromotionServiceImpl implements INewPromotionService,ApplicationEventPublisherAware { 49 +public class AggProductListServiceImpl implements IAggProductListService,ApplicationEventPublisherAware {
50 50
51 private static final Logger logger = LoggerFactory.getLogger(ProductListServiceImpl.class); 51 private static final Logger logger = LoggerFactory.getLogger(ProductListServiceImpl.class);
52 52