...
|
...
|
@@ -20,6 +20,7 @@ import com.yoho.search.service.helper.SearchCommonHelper; |
|
|
import com.yoho.search.service.scene.common.AbstractSceneService;
|
|
|
import com.yoho.search.service.scene.common.SceneProductListService;
|
|
|
import com.yoho.search.service.scene.common.SceneSelectionsService;
|
|
|
import com.yoho.search.service.scene.recall.SortRecallSceneService;
|
|
|
import com.yoho.search.service.service.IAggRecommendService;
|
|
|
import com.yoho.search.service.service.IProductIndexService;
|
|
|
|
...
|
...
|
@@ -38,6 +39,8 @@ public class SortSceneService extends AbstractSceneService { |
|
|
private IProductIndexService productIndexService;
|
|
|
@Autowired
|
|
|
private IAggRecommendService aggRecommendService;
|
|
|
@Autowired
|
|
|
private SortRecallSceneService sortRecallSceneService;
|
|
|
|
|
|
@Override
|
|
|
public String pageId() {
|
...
|
...
|
@@ -87,7 +90,7 @@ public class SortSceneService extends AbstractSceneService { |
|
|
if(!"13420925".equals(this.getuid(paramMap))){
|
|
|
productListFuture = CompletableFuture.supplyAsync(() -> sceneProductListService.productList(this.newParamMap(paramMap)),executorService);
|
|
|
}else{
|
|
|
productListFuture = CompletableFuture.supplyAsync(() -> sceneProductListService.productList(this.newParamMap(paramMap)),executorService);
|
|
|
productListFuture = CompletableFuture.supplyAsync(() -> sortRecallSceneService.productList(this.newParamMap(paramMap)),executorService);
|
|
|
}
|
|
|
// 3、获取聚合结果
|
|
|
CompletableFuture<SearchApiResult> standardsFuture = CompletableFuture.supplyAsync(() -> productIndexService.aggStandard(this.newParamMap(paramMap)),executorService);
|
...
|
...
|
|