Authored by unknown

fix场景化参数

... ... @@ -26,6 +26,7 @@ import org.elasticsearch.search.sort.SortOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.yoho.search.base.utils.ISearchConstants;
... ... @@ -319,7 +320,7 @@ public class SimilarProductServiceImpl extends BaseService implements ISimilarPr
if (jsonArray == null) {
return new ArrayList<>();
}
return JSONObject.parseArray(jsonArray.toJSONString(), clazz);
return JSON.parseArray(jsonArray.toJSONString(), clazz);
}
}
... ...
... ... @@ -45,6 +45,11 @@ public class SortSceneService extends AbstractSceneService {
}
@Override
public void addParamsToParamMap(Map<String, String> paramMap) {
super.addDefaultParamsToParamMap(paramMap);
}
@Override
public SearchApiResult productList(Map<String, String> paramMap) {
try {
// 0、添加默认参数
... ... @@ -145,9 +150,4 @@ public class SortSceneService extends AbstractSceneService {
return results;
}
@Override
public void addParamsToParamMap(Map<String, String> paramMap) {
// TODO Auto-generated method stub
}
}
... ...