Commit 76aa4b5f authored by zhoushiguang's avatar zhoushiguang

按绿波ID筛选

parent e9f8a3f0
......@@ -854,7 +854,7 @@ public class LanePeriodicDataProcessServiceImpl implements DataProcessService {
}
// 取最新的一条
Optional<LineCongestion> latest = dtoList.stream()
Optional<LineCongestion> latest = dtoList.stream().filter(o->Objects.equals(po.getGreenId(),o.getGreenWaveId()))
.max(Comparator.comparingLong(LineCongestion::getDetectTime));
LineCongestion lineCongestion = latest.orElse(null);
if (ObjectUtil.isEmpty(lineCongestion)) {
......
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