...
|
...
|
@@ -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);
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|