Showing
1 changed file
with
5 additions
and
0 deletions
@@ -102,6 +102,7 @@ public class UfoProductListService { | @@ -102,6 +102,7 @@ public class UfoProductListService { | ||
102 | 102 | ||
103 | @SearchCacheAble(cacheName = "UFO_RECOMMEND_LIST", cacheInMinute = 10) | 103 | @SearchCacheAble(cacheName = "UFO_RECOMMEND_LIST", cacheInMinute = 10) |
104 | public SearchApiResult recommendList(Map<String, String> paramMap) { | 104 | public SearchApiResult recommendList(Map<String, String> paramMap) { |
105 | + try { | ||
105 | String query = MapUtils.getString(paramMap, "query"); | 106 | String query = MapUtils.getString(paramMap, "query"); |
106 | Integer brandId = MapUtils.getInteger(paramMap, "brand"); | 107 | Integer brandId = MapUtils.getInteger(paramMap, "brand"); |
107 | Integer midSortId = MapUtils.getInteger(paramMap, "midSort"); | 108 | Integer midSortId = MapUtils.getInteger(paramMap, "midSort"); |
@@ -134,6 +135,10 @@ public class UfoProductListService { | @@ -134,6 +135,10 @@ public class UfoProductListService { | ||
134 | } | 135 | } |
135 | dataMap.put("total", returnInfoList.size()); | 136 | dataMap.put("total", returnInfoList.size()); |
136 | return searchApiResult; | 137 | return searchApiResult; |
138 | + } catch (Exception e) { | ||
139 | + logger.error(e.getMessage(), e); | ||
140 | + return new SearchApiResult().setData(null).setCode(500); | ||
141 | + } | ||
137 | } | 142 | } |
138 | 143 | ||
139 | private void addReturnInfoList(Map<String, String> paramMap, Set<Integer> idList, List<Map<String, Object>> returnInfoList) { | 144 | private void addReturnInfoList(Map<String, String> paramMap, Set<Integer> idList, List<Map<String, Object>> returnInfoList) { |
-
Please register or login to post a comment