Authored by ping

update

package com.yohomars.search.service;
import com.alibaba.fastjson.JSON;
import com.yoho.search.dal.model.SearchParam;
import com.yoho.search.dal.model.SearchResult;
import com.yohomars.search.utils.ISearchConstans;
... ... @@ -111,6 +112,8 @@ public class SearchService extends BaseService {
return null;
}
logger.info("result={}", JSON.toJSONString(searchResult));
// 构造返回结果
Map<String, Object> dataMap = new LinkedHashMap<String, Object>();
dataMap.put("total", searchResult.getTotal());
... ...