...
|
...
|
@@ -376,8 +376,14 @@ public class SuggestServiceImpl implements ISuggestService, ApplicationEventPubl |
|
|
}
|
|
|
|
|
|
// 3) 返回结果
|
|
|
Map<String, Object> dataMap = new HashMap<>();
|
|
|
dataMap.put("total", searchResult.getTotal());
|
|
|
dataMap.put("page", searchResult.getPage());
|
|
|
dataMap.put("page_size", searchParam.getSize());
|
|
|
dataMap.put("page_total", searchResult.getTotalPage());
|
|
|
dataMap.put("conversion_list", searchResult.getResultList());
|
|
|
logger.info("[func=suggestConversion][cost={}]", System.currentTimeMillis() - begin);
|
|
|
return new SearchApiResult().setData(searchResult.getResultList());
|
|
|
return new SearchApiResult().setData(dataMap);
|
|
|
} catch (Exception e) {
|
|
|
logger.error(e.getMessage(), e);
|
|
|
return new SearchApiResult().setCode(500).setMessage(e.getMessage()).setData(null);
|
...
|
...
|
|