...
|
...
|
@@ -283,16 +283,14 @@ public class SearchServiceHelper { |
|
|
//List<Map<String, Object>> pageList = new ArrayList<Map<String, Object>>();
|
|
|
for (Map<String, Object> map : resultList) {
|
|
|
if (isSuggest) {
|
|
|
dataMap.put(getSuggestMap(map).get("id").toString(), getSuggestMap(map));
|
|
|
dataMap.put(map.get("id").toString(), getSuggestMap(map));
|
|
|
} else if (paramMap.containsKey("returnField") && StringUtils.isNotBlank(paramMap.get("returnField"))) {
|
|
|
dataMap.put(map.get("id").toString(), getReturnMap(map, paramMap));
|
|
|
} else {
|
|
|
dataMap.put(map.get("id").toString(), map);
|
|
|
}
|
|
|
returnList.add(dataMap);
|
|
|
}
|
|
|
|
|
|
|
|
|
returnList.add(dataMap);
|
|
|
return returnList;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -304,7 +302,7 @@ public class SearchServiceHelper { |
|
|
*/
|
|
|
private Map<String, Object> getSuggestMap(Map<String, Object> map) {
|
|
|
Map<String, Object> dataMap = new HashMap<String, Object>();
|
|
|
dataMap.put("id", map.get("id") == null ? "" : map.get("id"));
|
|
|
//dataMap.put("id", map.get("id") == null ? "" : map.get("id"));
|
|
|
// dataMap.put("city_id", map.get("city_id") == null ? "" : map.get("city_id"));
|
|
|
// dataMap.put("is_top", map.get("is_top") == null ? "" : map.get("is_top"));
|
|
|
// dataMap.put("store_num", map.get("store_num") == null ? "" : map.get("store_num"));
|
...
|
...
|
|