Showing
1 changed file
with
3 additions
and
0 deletions
1 | package com.yohomars.search.service; | 1 | package com.yohomars.search.service; |
2 | 2 | ||
3 | +import com.alibaba.fastjson.JSON; | ||
3 | import com.yoho.search.dal.model.SearchParam; | 4 | import com.yoho.search.dal.model.SearchParam; |
4 | import com.yoho.search.dal.model.SearchResult; | 5 | import com.yoho.search.dal.model.SearchResult; |
5 | import com.yohomars.search.utils.ISearchConstans; | 6 | import com.yohomars.search.utils.ISearchConstans; |
@@ -111,6 +112,8 @@ public class SearchService extends BaseService { | @@ -111,6 +112,8 @@ public class SearchService extends BaseService { | ||
111 | return null; | 112 | return null; |
112 | } | 113 | } |
113 | 114 | ||
115 | + logger.info("result={}", JSON.toJSONString(searchResult)); | ||
116 | + | ||
114 | // 构造返回结果 | 117 | // 构造返回结果 |
115 | Map<String, Object> dataMap = new LinkedHashMap<String, Object>(); | 118 | Map<String, Object> dataMap = new LinkedHashMap<String, Object>(); |
116 | dataMap.put("total", searchResult.getTotal()); | 119 | dataMap.put("total", searchResult.getTotal()); |
-
Please register or login to post a comment