Merge remote-tracking branch 'origin/test' into dev

This commit is contained in:
joylink_zhangsai 2021-08-11 14:56:35 +08:00
commit c4cc217cd3

View File

@ -98,18 +98,23 @@ public class RouteOverlap extends MapNamedElement {
public void releaseImmediately() { public void releaseImmediately() {
if (!CollectionUtils.isEmpty(this.pathList)) { if (!CollectionUtils.isEmpty(this.pathList)) {
for (SectionPath path : this.pathList) { for (SectionPath path : this.pathList) {
List<RouteFls> flsList = path.getFlsList();
for (SwitchElement element : path.getSwitchList()) { for (SwitchElement element : path.getSwitchList()) {
element.getASwitch().overlapUnLock(); Switch aSwitch = element.getASwitch();
aSwitch.overlapUnLock();
if (!CollectionUtils.isEmpty(flsList)) {
for (RouteFls routeFls : flsList) {
if (routeFls.getBase().getASwitch().equals(aSwitch) &&
!aSwitch.isRouteLock()) {
routeFls.unlock();
}
}
}
} }
for (Section section1 : path.getSectionList()) { for (Section section1 : path.getSectionList()) {
section1.overlapUnlocking(); section1.overlapUnlocking();
} }
List<RouteFls> flsList = path.getFlsList();
if (!CollectionUtils.isEmpty(flsList)) {
for (RouteFls routeFls : flsList) {
routeFls.unlock();
}
}
} }
} }
this.forbidden = true; this.forbidden = true;