Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/rtss-server into test1
This commit is contained in:
commit
32972e5697
@ -172,7 +172,7 @@ public class ZCLogicLoop {
|
||||
break;
|
||||
}
|
||||
//非通信车占用区段
|
||||
if (temp.isNonCbtcOccupy()) {
|
||||
if (temp.isNonCbtcOccupy() && !temp.isSwitchTrack()) {
|
||||
deviceEnd = new MovementAuthority.End(section,
|
||||
MovementAuthority.EndType.NCT_OCCUPIED_IN_FRONT_OF_SECTION);
|
||||
break;
|
||||
|
@ -737,15 +737,15 @@ public class CalculateService {
|
||||
Set<Section> sections = routeMap.keySet();
|
||||
for (Section last : sections) {
|
||||
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;
|
||||
tempList.add(route);
|
||||
List<Route> nextRouteList = route.getDestination().getRouteList();
|
||||
if (nextRouteList.size() == 1 &&
|
||||
Objects.equals(nextRouteList.get(0).getLastRouteSection(), last)) {
|
||||
if (nextRouteList.size() == 1) {
|
||||
tempList.addAll(nextRouteList);
|
||||
} else {
|
||||
throw BusinessExceptionAssertEnum.SYSTEM_EXCEPTION.exception();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user