|
|
@@ -613,13 +613,15 @@ public class SearcherServiceImpl implements SearcherService {
|
|
|
type = "all";
|
|
|
}
|
|
|
try {
|
|
|
- if (keyword.equals("store")) {
|
|
|
+ if (type.equals("store")) {
|
|
|
List<VendorIntroduction> vendorIntroductions = vendorIntroductionService.getVendorIntroduction(1,1024*1024*1024,keyword,null).getContent();
|
|
|
List<Object> resultMap = FastjsonUtils.fromJsonArray(JSON.toJSONString(vendorIntroductions.stream().map(VendorIntroduction::getEnName).map(en -> {Map s = new HashMap ();s.put("name", en);return s;}).collect(Collectors.toList())
|
|
|
));
|
|
|
+ result= new HashMap<>();
|
|
|
result.put("result",resultMap);
|
|
|
+ } else {
|
|
|
+ result = searchService.getSimilarKeywords(keyword, type);
|
|
|
}
|
|
|
- result = searchService.getSimilarKeywords(keyword, type);
|
|
|
} catch (SearchException e) {
|
|
|
throwSystemException(e);
|
|
|
}
|