Commit 6720c45d authored by hanbing's avatar hanbing

[update] 统一信控,方案列表车道排序

parent f77feba3
......@@ -425,7 +425,10 @@ public class SchemeConfigServiceImpl implements SchemeConfigService {
}
}
}
return laneList;
List<SaveSchemeConfigDTO.LaneListElement> sortedList = laneList.stream()
.sorted(Comparator.comparing(SaveSchemeConfigDTO.LaneListElement::getLaneId))
.collect(Collectors.toList());
return sortedList;
}
private boolean hasLightsId(Integer lightsId, Integer phaseId, String crossId) {
......
......@@ -1082,7 +1082,6 @@ public class TrendServiceImpl implements TrendService {
// 根据sort属性对uniqueList进行排序
uniqueList.sort(Comparator.comparingInt(GreenwaveCrossPO::getSort));
for (GreenwaveCrossPO greenwaveCrossPO : uniqueList) {
GreenWaveCrossMonitorVO greenWaveCrossMonitorVO = new GreenWaveCrossMonitorVO();
......
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