Authored by hugufei

修改缓存名称

... ... @@ -131,8 +131,9 @@ public class CommonSceneProductListService {
ProductListSortKey productSortKey = new ProductListSortKey() {
@Override
public String getSortKey(Map<?, ?> product) {
return MapUtils.getString(product, "brand_id","0");
return MapUtils.getString(product, "brand_id", "0");
}
@Override
public int getMaxCount() {
return 2;
... ... @@ -215,8 +216,8 @@ public class CommonSceneProductListService {
* @param paramMap
* @return
*/
@SearchCacheAble(cacheName = "SCENE_PRODUCT_LIST_DEFAULT", cacheType = CacheType.EHCACHE, cacheInMinute = 10, excludeParams = { "uid" })
public SearchApiResult productListForDefault(Map<String, String> paramMap) {
@SearchCacheAble(cacheName = "PRODUCT_LIST_NOT_PERSIONAL", cacheType = CacheType.EHCACHE, cacheInMinute = 10, excludeParams = { "uid" })
public SearchApiResult productListNotPersional(Map<String, String> paramMap) {
try {
// 1)验证查询条数
int pageSize = StringUtils.isBlank(paramMap.get("viewNum")) ? 10 : Integer.parseInt(paramMap.get("viewNum"));
... ...
... ... @@ -77,7 +77,7 @@ public class SceneProductListService extends AbstractCacheAbleService {
if (isPersionalScene) {
return commonSceneProductListService.productListForPersional(paramMap);
} else {
return commonSceneProductListService.productListForDefault(paramMap);
return commonSceneProductListService.productListNotPersional(paramMap);
}
}
... ...