Commit b1499500 authored by duanruiming's avatar duanruiming

[update] 济南问题优化更新,数据倒排

parent a4d96b2a
......@@ -1418,9 +1418,8 @@ public class TrendServiceImpl implements TrendService {
}
List<TableQueryVO.CycleDataElement> sortedRes = res.stream()
.sorted(Comparator.comparing(TableQueryVO.CycleDataElement::getTime))
.sorted(Comparator.comparing(TableQueryVO.CycleDataElement::getTime).reversed())
.collect(Collectors.toList());
return sortedRes;
}
......@@ -2008,6 +2007,7 @@ public class TrendServiceImpl implements TrendService {
queryWrapper.eq(AnalysisRidTurnIndicators::getCrossId, crossId);
queryWrapper.eq(AnalysisRidTurnIndicators::getGranularity, granularity);
queryWrapper.between(AnalysisRidTurnIndicators::getWindowEndTime, start, end);
queryWrapper.orderByDesc(AnalysisRidTurnIndicators::getWindowStartTime);
return ridTurnIndicatorsMapper.selectList(queryWrapper);
} catch (Exception e) {
log.error("全是周期车道数据方向转向查询异常:", 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