修改Pis循环逻辑bug

This commit is contained in:
joylink_zhangsai 2022-10-09 13:06:20 +08:00
parent 3bf3ddab97
commit 11d4f7b154

View File

@ -64,7 +64,7 @@ public class PisLogicLoop {
boolean parking = trainInfo.isParking(); boolean parking = trainInfo.isParking();
String standTrackCode = parking ? trainInfo.getActualArriveStandTrack() : trainInfo.getEstimatedArriveStandTrack(); String standTrackCode = parking ? trainInfo.getActualArriveStandTrack() : trainInfo.getEstimatedArriveStandTrack();
if (StringUtils.hasText(standTrackCode)) { if (StringUtils.hasText(standTrackCode)) {
Section standTrack = repository.getByCode(trainInfo.getActualArriveStandTrack(), Section.class); Section standTrack = repository.getByCode(standTrackCode, Section.class);
List<Stand> standList = standTrack.getStandList(); List<Stand> standList = standTrack.getStandList();
if (!CollectionUtils.isEmpty(standList)) { if (!CollectionUtils.isEmpty(standList)) {
Optional<Stand> standOptional = standList.stream().filter(stand -> !stand.isSmall()).findAny(); Optional<Stand> standOptional = standList.stream().filter(stand -> !stand.isSmall()).findAny();