Authored by mali

如果走商品池接口,默认走排序倒序接口

@@ -74,7 +74,7 @@ public class ProductSearchController { @@ -74,7 +74,7 @@ public class ProductSearchController {
74 74
75 } 75 }
76 } else if (null != productPool) { 76 } else if (null != productPool) {
77 - order = "pools.order_by:desc"; // 如果走商品池接口,默认走排序倒序接口 77 + order = null == order ? "pools.order_by:desc" : order; // 如果走商品池接口,默认走排序倒序接口
78 } 78 }
79 SortIdLevel sortIdLevel = productSearchService.getSortLevelById(sort); 79 SortIdLevel sortIdLevel = productSearchService.getSortLevelById(sort);
80 ProductSearchReq req = new ProductSearchReq().setOrder(order).setId(id).setPool(productPool).setBrand(brand).setMidSort(sortIdLevel.getMidSortId()).setMaxSort(sortIdLevel.getMaxSortId()) 80 ProductSearchReq req = new ProductSearchReq().setOrder(order).setId(id).setPool(productPool).setBrand(brand).setMidSort(sortIdLevel.getMidSortId()).setMaxSort(sortIdLevel.getMaxSortId())