|
@@ -26,6 +26,7 @@ import org.elasticsearch.search.sort.SortOrder; |
|
@@ -26,6 +26,7 @@ import org.elasticsearch.search.sort.SortOrder; |
26
|
import org.springframework.beans.factory.annotation.Autowired;
|
26
|
import org.springframework.beans.factory.annotation.Autowired;
|
27
|
import org.springframework.stereotype.Service;
|
27
|
import org.springframework.stereotype.Service;
|
28
|
|
28
|
|
|
|
29
|
+import com.alibaba.fastjson.JSON;
|
29
|
import com.alibaba.fastjson.JSONArray;
|
30
|
import com.alibaba.fastjson.JSONArray;
|
30
|
import com.alibaba.fastjson.JSONObject;
|
31
|
import com.alibaba.fastjson.JSONObject;
|
31
|
import com.yoho.search.base.utils.ISearchConstants;
|
32
|
import com.yoho.search.base.utils.ISearchConstants;
|
|
@@ -319,7 +320,7 @@ public class SimilarProductServiceImpl extends BaseService implements ISimilarPr |
|
@@ -319,7 +320,7 @@ public class SimilarProductServiceImpl extends BaseService implements ISimilarPr |
319
|
if (jsonArray == null) {
|
320
|
if (jsonArray == null) {
|
320
|
return new ArrayList<>();
|
321
|
return new ArrayList<>();
|
321
|
}
|
322
|
}
|
322
|
- return JSONObject.parseArray(jsonArray.toJSONString(), clazz);
|
323
|
+ return JSON.parseArray(jsonArray.toJSONString(), clazz);
|
323
|
}
|
324
|
}
|
324
|
|
325
|
|
325
|
} |
326
|
} |