|
|
package com.yoho.search.service.scene.ufo;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yoho.search.aop.cache.SearchCacheAble;
|
|
|
import com.yoho.search.base.utils.ISearchConstants;
|
|
|
import com.yoho.search.common.SearchCommonService;
|
|
|
import com.yoho.search.core.es.model.SearchParam;
|
...
|
...
|
@@ -39,7 +40,7 @@ public class UfoProductListService { |
|
|
private static final String RETURN_LIST_NAME = "product_list";
|
|
|
private static final Integer RECOMMEND_LIMIT = 30;
|
|
|
|
|
|
//@SearchCacheAble(cacheName = "UFO_PRODUCT_LIST", cacheInMinute = 10)
|
|
|
@SearchCacheAble(cacheName = "UFO_PRODUCT_LIST", cacheInMinute = 10)
|
|
|
public SearchApiResult productList(Map<String, String> paramMap) {
|
|
|
try {
|
|
|
// 1、参数校验
|
...
|
...
|
@@ -82,7 +83,7 @@ public class UfoProductListService { |
|
|
}
|
|
|
}
|
|
|
|
|
|
//@SearchCacheAble(cacheName = "UFO_RECOMMEND_LIST", cacheInMinute = 10)
|
|
|
@SearchCacheAble(cacheName = "UFO_RECOMMEND_LIST", cacheInMinute = 10)
|
|
|
public SearchApiResult recommendList(Map<String, String> paramMap) {
|
|
|
String query = MapUtils.getString(paramMap, "query");
|
|
|
Integer brandId = MapUtils.getInteger(paramMap, "brand");
|
...
|
...
|
|