|
@@ -131,8 +131,9 @@ public class CommonSceneProductListService { |
|
@@ -131,8 +131,9 @@ public class CommonSceneProductListService { |
131
|
ProductListSortKey productSortKey = new ProductListSortKey() {
|
131
|
ProductListSortKey productSortKey = new ProductListSortKey() {
|
132
|
@Override
|
132
|
@Override
|
133
|
public String getSortKey(Map<?, ?> product) {
|
133
|
public String getSortKey(Map<?, ?> product) {
|
134
|
- return MapUtils.getString(product, "brand_id","0");
|
134
|
+ return MapUtils.getString(product, "brand_id", "0");
|
135
|
}
|
135
|
}
|
|
|
136
|
+
|
136
|
@Override
|
137
|
@Override
|
137
|
public int getMaxCount() {
|
138
|
public int getMaxCount() {
|
138
|
return 2;
|
139
|
return 2;
|
|
@@ -215,8 +216,8 @@ public class CommonSceneProductListService { |
|
@@ -215,8 +216,8 @@ public class CommonSceneProductListService { |
215
|
* @param paramMap
|
216
|
* @param paramMap
|
216
|
* @return
|
217
|
* @return
|
217
|
*/
|
218
|
*/
|
218
|
- @SearchCacheAble(cacheName = "SCENE_PRODUCT_LIST_DEFAULT", cacheType = CacheType.EHCACHE, cacheInMinute = 10, excludeParams = { "uid" })
|
|
|
219
|
- public SearchApiResult productListForDefault(Map<String, String> paramMap) {
|
219
|
+ @SearchCacheAble(cacheName = "PRODUCT_LIST_NOT_PERSIONAL", cacheType = CacheType.EHCACHE, cacheInMinute = 10, excludeParams = { "uid" })
|
|
|
220
|
+ public SearchApiResult productListNotPersional(Map<String, String> paramMap) {
|
220
|
try {
|
221
|
try {
|
221
|
// 1)验证查询条数
|
222
|
// 1)验证查询条数
|
222
|
int pageSize = StringUtils.isBlank(paramMap.get("viewNum")) ? 10 : Integer.parseInt(paramMap.get("viewNum"));
|
223
|
int pageSize = StringUtils.isBlank(paramMap.get("viewNum")) ? 10 : Integer.parseInt(paramMap.get("viewNum"));
|