...
|
...
|
@@ -62,6 +62,7 @@ public class SuggestConversionFlow implements RetryBusinessFlow { |
|
|
@Override
|
|
|
public void init() {
|
|
|
existSourceSet = suggestConversionService.getAllSources();
|
|
|
logger.info("[func=SuggestConversionFlow.init][existSourceSetSize={}]", existSourceSet.size());
|
|
|
initAllYohoKeywords();
|
|
|
}
|
|
|
|
...
|
...
|
@@ -71,6 +72,7 @@ public class SuggestConversionFlow implements RetryBusinessFlow { |
|
|
resultSet.addAll(brandList.stream().map(Brand::getBrandName).filter(name -> StringUtils.isNotBlank(name)).collect(Collectors.toSet()));
|
|
|
resultSet.addAll(brandList.stream().map(Brand::getBrandNameEn).filter(name -> StringUtils.isNotBlank(name)).collect(Collectors.toSet()));
|
|
|
resultSet.addAll(brandList.stream().map(Brand::getBrandNameCn).filter(name -> StringUtils.isNotBlank(name)).collect(Collectors.toSet()));
|
|
|
logger.info("[func=SuggestConversionFlow.init][resultSetAfterLoadBrand={}]", resultSet.size());
|
|
|
|
|
|
List<ProductSort> productSortList = productSortService.getPageLists(1, Integer.MAX_VALUE);
|
|
|
resultSet.addAll(productSortList.stream().map(ProductSort::getSortName).filter(name -> StringUtils.isNotBlank(name)).collect(Collectors.toSet()));
|
...
|
...
|
@@ -82,11 +84,14 @@ public class SuggestConversionFlow implements RetryBusinessFlow { |
|
|
}
|
|
|
}
|
|
|
|
|
|
logger.info("[func=SuggestConversionFlow.init][resultSetAfterLoadSort={}]", resultSet.size());
|
|
|
List<Style> styleList = styleService.getStylePageLists(1, Integer.MAX_VALUE);
|
|
|
resultSet.addAll(styleList.stream().map(Style::getStyleName).filter(name -> StringUtils.isNotBlank(name)).collect(Collectors.toSet()));
|
|
|
logger.info("[func=SuggestConversionFlow.init][resultSetAfterLoadStyle={}]", resultSet.size());
|
|
|
|
|
|
List<ParameterMake> parameterMakeList = parameterMakeService.getAll();
|
|
|
resultSet.addAll(parameterMakeList.stream().map(ParameterMake::getParameterValue).filter(name -> StringUtils.isNotBlank(name)).collect(Collectors.toSet()));
|
|
|
logger.info("[func=SuggestConversionFlow.init][resultSetAfterLoadMake={}]", resultSet.size());
|
|
|
|
|
|
Set<String> tokens;
|
|
|
for (String keyword : resultSet) {
|
...
|
...
|
|