Authored by hugufei

砍价列表按id排序

@@ -105,6 +105,7 @@ public class CutdownPageSceneService extends AbstractPageSceneService { @@ -105,6 +105,7 @@ public class CutdownPageSceneService extends AbstractPageSceneService {
105 List<SortBuilder<?>> sortBuilders = new ArrayList<>(); 105 List<SortBuilder<?>> sortBuilders = new ArrayList<>();
106 sortBuilders.add(SortBuilders.fieldSort(ProductIndexEsField.salesNum).order(SortOrder.DESC)); 106 sortBuilders.add(SortBuilders.fieldSort(ProductIndexEsField.salesNum).order(SortOrder.DESC));
107 sortBuilders.add(SortBuilders.fieldSort(ProductIndexEsField.id).order(SortOrder.DESC)); 107 sortBuilders.add(SortBuilders.fieldSort(ProductIndexEsField.id).order(SortOrder.DESC));
  108 + searchParam.setSortBuilders(sortBuilders);
108 109
109 //5、执行搜索 110 //5、执行搜索
110 SearchResult searchResult = searchCommonService.doSearch(ISearchConstants.INDEX_NAME_PRODUCT_INDEX, searchParam); 111 SearchResult searchResult = searchCommonService.doSearch(ISearchConstants.INDEX_NAME_PRODUCT_INDEX, searchParam);