Commit 7f4f3240 authored by hanbing's avatar hanbing

[update] 渠化配置,回显按车道序号排序

parent 8a7320f3
......@@ -408,8 +408,11 @@ public class CrossConfigServiceImpl implements CrossConfigService {
dirListElement.setIsPersonCross(isPedestrian);
// 构造内层List
List<LaneInfoPO> value = entry.getValue();
List<LaneInfoPO> sortedValue = value.stream().
sorted(Comparator.comparing(LaneInfoPO::getSort)).
collect(Collectors.toList());
List<LaneListElement> laneListElementList = new ArrayList<>();
for (LaneInfoPO laneInfoPO : value) {
for (LaneInfoPO laneInfoPO : sortedValue) {
LaneListElement laneListElement = new LaneListElement();
String laneId = laneInfoPO.getId();
laneListElement.setId(laneId);
......
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