Commit a1495534 authored by duanruiming's avatar duanruiming

[update] 快照数据倒排

parent 8fafabbc
...@@ -1984,7 +1984,7 @@ public class TrendServiceImpl implements TrendService { ...@@ -1984,7 +1984,7 @@ public class TrendServiceImpl implements TrendService {
List<TableQueryVO.RealTimeDataElement> result = buildRealTimeList(dtoList); List<TableQueryVO.RealTimeDataElement> result = buildRealTimeList(dtoList);
List<TableQueryVO.RealTimeDataElement> sorts = new ArrayList<>(); List<TableQueryVO.RealTimeDataElement> sorts = new ArrayList<>();
if (!CollectionUtils.isEmpty(result)) { if (!CollectionUtils.isEmpty(result)) {
sorts = result.stream().sorted(Comparator.comparing(TableQueryVO.RealTimeDataElement::getTime)).collect(Collectors.toList()); sorts = result.stream().sorted(Comparator.comparing(TableQueryVO.RealTimeDataElement::getTime).reversed()).collect(Collectors.toList());
} }
return sorts; return sorts;
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment