修改小bug

This commit is contained in:
joylink_zhangsai 2022-09-20 17:25:23 +08:00
parent ffd71ef83c
commit 905eda42c4
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public class OnboardPisStatus extends Watchable {
OnboardPisStatus changeStatus = new OnboardPisStatus(); OnboardPisStatus changeStatus = new OnboardPisStatus();
changeStatus.setGroupNumber(groupNumber); changeStatus.setGroupNumber(groupNumber);
if (Objects.equals(nextStationName, pis.getNextStationName())) { if (!Objects.equals(nextStationName, pis.getNextStationName())) {
nextStationName = pis.getNextStationName(); nextStationName = pis.getNextStationName();
change = true; change = true;
changeStatus.setNextStationName(nextStationName); changeStatus.setNextStationName(nextStationName);

View File

@ -57,7 +57,7 @@ public class PisLogicLoop {
if (StringUtils.hasText(nextStandTrackCode)) { if (StringUtils.hasText(nextStandTrackCode)) {
Section standTrack = repository.getByCode(nextStandTrackCode, Section.class); Section standTrack = repository.getByCode(nextStandTrackCode, Section.class);
List<Stand> standList = standTrack.getStandList(); List<Stand> standList = standTrack.getStandList();
if (!CollectionUtils.isEmpty(standList)) { if (!CollectionUtils.isEmpty(standList) && !standList.get(0).isSmall()) {
nextStation = standList.get(0).getStation(); nextStation = standList.get(0).getStation();
} }
} }