...
|
...
|
@@ -10,6 +10,7 @@ import com.yoho.search.models.PromotionConditions; |
|
|
import com.yoho.search.models.SearchApiResult;
|
|
|
import com.yoho.search.recall.scene.SceneRecallProductListService;
|
|
|
import com.yoho.search.recall.scene.beans.builder.UserRecallRequestBuilder;
|
|
|
import com.yoho.search.recall.scene.beans.strategy.NotRecallTypeEnum;
|
|
|
import com.yoho.search.recall.scene.models.req.UserRecallRequest;
|
|
|
import com.yoho.search.service.base.SearchCacheService;
|
|
|
import com.yoho.search.service.base.SearchCommonService;
|
...
|
...
|
@@ -136,7 +137,7 @@ public class PromotionProductListService extends AbstractCacheAbleService { |
|
|
}
|
|
|
// 7)构造返回结果
|
|
|
boolean needResort = searchCommonHelper.isOrderEmpty(paramMap);
|
|
|
JSONObject productListResult = productListHelper.buildProductListResult(searchResult, pageSize, needResort);
|
|
|
JSONObject productListResult = productListHelper.buildProductListResult(searchResult, pageSize, needResort,needResort? NotRecallTypeEnum.W2V_PERSIONAL:NotRecallTypeEnum.NOT_PERSIONAL);
|
|
|
|
|
|
// 10)将结果存进缓存
|
|
|
searchCacheService.addJSONObjectToCache(this.searchCache, productIndexName, searchParam, productListResult);
|
...
|
...
|
|