修改Pis循环逻辑bug
This commit is contained in:
parent
3bf3ddab97
commit
11d4f7b154
@ -64,7 +64,7 @@ public class PisLogicLoop {
|
||||
boolean parking = trainInfo.isParking();
|
||||
String standTrackCode = parking ? trainInfo.getActualArriveStandTrack() : trainInfo.getEstimatedArriveStandTrack();
|
||||
if (StringUtils.hasText(standTrackCode)) {
|
||||
Section standTrack = repository.getByCode(trainInfo.getActualArriveStandTrack(), Section.class);
|
||||
Section standTrack = repository.getByCode(standTrackCode, Section.class);
|
||||
List<Stand> standList = standTrack.getStandList();
|
||||
if (!CollectionUtils.isEmpty(standList)) {
|
||||
Optional<Stand> standOptional = standList.stream().filter(stand -> !stand.isSmall()).findAny();
|
||||
|
Loading…
Reference in New Issue
Block a user