...
|
...
|
@@ -52,6 +52,21 @@ public class SuggestConvertorService { |
|
|
@Autowired
|
|
|
private IYohoIndexService indexService;
|
|
|
|
|
|
public void insertOrUpdateConversion(String source, String dest){
|
|
|
SuggestConversion suggestConversion = suggestConversionService.selectBySource(source);
|
|
|
if(suggestConversion == null){
|
|
|
suggestConversion = new SuggestConversion();
|
|
|
suggestConversion.setSource(source);
|
|
|
suggestConversion.setDest(dest);
|
|
|
suggestConversionService.insertBatch(Arrays.asList(suggestConversion));
|
|
|
}
|
|
|
else{
|
|
|
suggestConversion.setDest(dest);
|
|
|
suggestConversion.setUpdateTime(DateUtil.getCurrentTimeSecond());
|
|
|
suggestConversionService.updateByPrimaryKey(suggestConversion);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public YohoKeywordsBO buildYohoKeywordBO() {
|
|
|
Set<String> keywordSet = new HashSet<>(3000);
|
|
|
Set<String> filterSortNameSet = new HashSet<>(300);
|
...
|
...
|
|