Authored by wangnan9279

ufo

... ... @@ -2,6 +2,7 @@ package com.yoho.search.service.scene.shopbrand;
import com.alibaba.fastjson.JSONArray;
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.common.SearchRequestParams;
... ... @@ -39,7 +40,7 @@ public class UfoAggBrandService {
@Autowired
private SearchCommonService searchCommonService;
//@SearchCacheAble(cacheName = "UFO_BRAND_LIST", cacheInMinute = 10)
@SearchCacheAble(cacheName = "UFO_BRAND_LIST", cacheInMinute = 10)
public SearchApiResult aggAllBrandList(Map<String, String> paramMap) {
try {
// 1、构造带filter和query的SearchParam
... ...
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");
... ...
... ... @@ -2,6 +2,7 @@ package com.yoho.search.service.scene.ufo;
import com.alibaba.fastjson.JSONArray;
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.common.utils.SearchApiResultUtils;
... ... @@ -42,7 +43,7 @@ public class UfoSelectionsService {
@Autowired
private SearchCommonService searchCommonService;
//@SearchCacheAble(cacheName = "UFO_SELECTIONS_LIST", cacheInMinute = 10)
@SearchCacheAble(cacheName = "UFO_SELECTIONS_LIST", cacheInMinute = 10)
public SearchApiResult getSelectionsForApp(Map<String, String> paramMap) {
try {
// 1)构造searchParam
... ...