Commit 2160ad52 authored by duanruiming's avatar duanruiming

[update] 车道快照查询分页优化2

parent baf45ccc
......@@ -1994,7 +1994,7 @@ public class TrendServiceImpl implements TrendService {
laneSnapshotDataQueryService.queryByCrossIdAndTimeSpan(crossId, start, end, pageNum, laneId);
List<TableQueryVO.RealTimeDataElement> result = buildRealTimeList(dtoList);
List<TableQueryVO.RealTimeDataElement> sorts = new ArrayList<>();
if (!CollectionUtils.isEmpty(sorts)) {
if (!CollectionUtils.isEmpty(result)) {
sorts = result.stream().sorted(Comparator.comparing(TableQueryVO.RealTimeDataElement::getTime)).collect(Collectors.toList());
}
return sorts;
......
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