|
|
@@ -697,7 +697,7 @@ public class SearchServiceImpl implements SearchService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<String> getSimilarPropertyValues(Long kindId, Long propertyId, String keyword, Long topNum) {
|
|
|
+ public List<Map<String, String>> getSimilarPropertyValues(Long kindId, Long propertyId, String keyword, Long topNum) {
|
|
|
String message = "";
|
|
|
if (kindId == null || propertyId == null) {
|
|
|
message = "类目id或属性id为空";
|
|
|
@@ -746,7 +746,14 @@ public class SearchServiceImpl implements SearchService {
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
- return propertyValues;
|
|
|
+
|
|
|
+ List<Map<String, String>> result = new ArrayList<>();
|
|
|
+ for (String propertyValue : propertyValues) {
|
|
|
+ Map<String, String> map = new HashMap<>();
|
|
|
+ map.put("propertyValue", propertyValue);
|
|
|
+ result.add(map);
|
|
|
+ }
|
|
|
+ return result;
|
|
|
|
|
|
}
|
|
|
|