修改头码车运行bug
This commit is contained in:
parent
0a2ea4ad09
commit
5dbba35cdf
@ -1002,7 +1002,9 @@ public class Section extends MayOutOfOrderDevice {
|
||||
}
|
||||
|
||||
public boolean isAheadOf(SimulationDataRepository repository, Section other, boolean right) {
|
||||
List<RoutePath> routePaths = repository.queryRoutePaths(other, this);
|
||||
List<RoutePath> routePaths = repository.queryRoutePathsByEndAndContainsSection(this, other);
|
||||
if (CollectionUtils.isEmpty(routePaths))
|
||||
return false;
|
||||
for (RoutePath routePath : routePaths) {
|
||||
if (routePath.isRight() == right)
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user