列车图例显示位置调整

This commit is contained in:
tiger_zhou 2023-05-04 15:53:09 +08:00
parent 943c46bda7
commit 8bd766a301

View File

@ -24,7 +24,9 @@ public class PackingService implements CalculateDiagram{
Section trainSection = train.getHeadPosition().getSection();
Long mapId = simulation.getBuildParams().getMap().getId();
LocalDateTime simulationDateTime = simulation.getCorrectSystemTime();
if(train.isParkingAt()){
if(!train.isParkingAt()){
return Optional.empty();
}
Station startStation = diagramStation.findFirstNotDepotStation(train.isRight());
Station lastStation = diagramStation.findLastNotDepotStation(train.isRight());
if(trainSection.isStandTrack() && Objects.equals(trainSection.getStation().getCode(),startStation.getCode())){
@ -47,7 +49,6 @@ public class PackingService implements CalculateDiagram{
return Optional.of(sd);
}
//中途停靠站不处理
}
return Optional.empty();
}
}