进路路径查询方法哈尔滨ATP进路逻辑调整
This commit is contained in:
parent
05ab248b18
commit
d669bb2d4c
@ -737,15 +737,15 @@ public class CalculateService {
|
|||||||
Set<Section> sections = routeMap.keySet();
|
Set<Section> sections = routeMap.keySet();
|
||||||
for (Section last : sections) {
|
for (Section last : sections) {
|
||||||
List<Route> tempList = routeMap.get(last);
|
List<Route> tempList = routeMap.get(last);
|
||||||
if (tempList.contains(lastRouteSection)) {
|
if (Objects.equals(last, lastRouteSection)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (tempList.get(0).getSectionList().contains(lastRouteSection)) {
|
||||||
handled = true;
|
handled = true;
|
||||||
tempList.add(route);
|
tempList.add(route);
|
||||||
List<Route> nextRouteList = route.getDestination().getRouteList();
|
List<Route> nextRouteList = route.getDestination().getRouteList();
|
||||||
if (nextRouteList.size() == 1 &&
|
if (nextRouteList.size() == 1) {
|
||||||
Objects.equals(nextRouteList.get(0).getLastRouteSection(), last)) {
|
|
||||||
tempList.addAll(nextRouteList);
|
tempList.addAll(nextRouteList);
|
||||||
} else {
|
|
||||||
throw BusinessExceptionAssertEnum.SYSTEM_EXCEPTION.exception();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user