...
|
...
|
@@ -126,7 +126,7 @@ public class AggCommonHelper { |
|
|
}
|
|
|
// 再按照某个字段对商品排序
|
|
|
FieldSortOrder fieldSortOrder = new FieldSortOrder(topHitOrder);
|
|
|
boolean isDesc = fieldSortOrder.getSortField().equals(SortOrder.DESC) ? true : false;
|
|
|
boolean isDesc = fieldSortOrder.getSortField().equals(SortOrder.DESC.toString()) ? true : false;
|
|
|
Collections.sort(productList, new Comparator<Map<String, Object>>() {
|
|
|
public int compare(Map<String, Object> o1, Map<String, Object> o2) {
|
|
|
try {
|
...
|
...
|
@@ -214,4 +214,5 @@ public class AggCommonHelper { |
|
|
}
|
|
|
return results;
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|