|
|
@@ -659,12 +659,17 @@ public class SearcherServiceImpl implements SearcherService {
|
|
|
type = "all";
|
|
|
}
|
|
|
try {
|
|
|
- if (type.equals("store")) {
|
|
|
+ if (type.equals("store") || type.equals("all")) {
|
|
|
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);
|
|
|
+ if (type.equals("store")) {
|
|
|
+ result= new HashMap<>();
|
|
|
+ result.put("result",resultMap);
|
|
|
+ } else {
|
|
|
+ result = searchService.getSimilarKeywords(keyword, type);
|
|
|
+ result.put("store", resultMap);
|
|
|
+ }
|
|
|
} else {
|
|
|
result = searchService.getSimilarKeywords(keyword, type);
|
|
|
}
|